Skip to content

Commit

Permalink
Updated the yelb-ui Linux script to allow the angular app to compile …
Browse files Browse the repository at this point in the history
…properly (bumped Node to 8.11 + other minor fixes)
  • Loading branch information
mreferre committed Nov 28, 2018
1 parent 1be8f3c commit a7eb6af
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions deployments/platformdeployment/Linux/yelb-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# The YELB_APPSERVER_ENDPOINT variable is also useful when you want to decouple the shipping of the html5/angular binaries (e.g off of S3)
# from the yelb-appserver end-point (e.g. API Gatway) in a serverless deployment. In such scenario the Angular code needs to be compiled with
# the custom option so that the Javascript will call the actual application endpoint (not the NGINX that will forward to it).
export YELB_APPSERVER_ENDPOINT="${YELB_APPSERVER_ENDPOINT:-<localhost}"
export YELB_APPSERVER_ENDPOINT="${YELB_APPSERVER_ENDPOINT:-localhost}"
###########################################################
########### END OF USER INPUTS ###########
###########################################################
Expand Down Expand Up @@ -42,13 +42,12 @@ fi

cd $HOMEDIR
cd yelb/yelb-ui
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
. ~/.nvm/nvm.sh
nvm install 6.11.5
nvm install --lts
nvm install 8.11
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Expand Down Expand Up @@ -130,5 +129,3 @@ echo " include /etc/nginx/conf.d/*.conf;" | sudo tee -a $NGINX_MAIN > /dev/nu
echo "}" | sudo tee -a $NGINX_MAIN > /dev/null
chkconfig nginx on
service nginx start


0 comments on commit a7eb6af

Please sign in to comment.