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
+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