Front-end build for perfs - #11

This commit is contained in:
Gaël Métais
2015-01-09 13:54:00 +01:00
parent 7c8ffec254
commit db39e79cf7
16 changed files with 209 additions and 101 deletions
+2 -2
View File
@@ -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
+7 -2
View File
@@ -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