Front-end build for perfs - #11
This commit is contained in:
@@ -21,7 +21,7 @@ sudo chown $USER /space
|
||||
cd /space
|
||||
git clone https://github.com/gmetais/YellowLabTools.git --branch master
|
||||
cd YellowLabTools
|
||||
npm install --production
|
||||
npm install
|
||||
bower install --config.interactive=false --allow-root
|
||||
|
||||
# Front-end compilation
|
||||
@@ -31,4 +31,4 @@ grunt build
|
||||
# Start the server
|
||||
rm server_config/settings.json
|
||||
cp server_config/settings-prod.json server_config/settings.json
|
||||
forever start -c "node --stack-size=65500" bin/server.js
|
||||
NODE_ENV=production forever start -c "node --stack-size=65500" bin/server.js
|
||||
@@ -12,9 +12,14 @@ git stash pop
|
||||
|
||||
# In case something was added in package.json or bower.json
|
||||
rm -rf node_modules
|
||||
npm install --production
|
||||
npm install
|
||||
rm -rf bower_components
|
||||
bower install --config.interactive=false --allow-root
|
||||
|
||||
# Front-end compilation
|
||||
rm -rf front/build
|
||||
npm install -g grunt
|
||||
grunt build
|
||||
|
||||
# Restart the server
|
||||
forever start -c "node --stack-size=65500" server.js
|
||||
NODE_ENV=production forever start -c "node --stack-size=65500" bin/server.js
|
||||
Reference in New Issue
Block a user