Browse Source

Clean npm and bower repositories on server update

Gaël Métais 10 years ago
parent
commit
36375a507d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      server_config/server_update.sh

+ 2 - 0
server_config/server_update.sh

@@ -11,7 +11,9 @@ git pull
 git stash pop
 
 # In case something was added in package.json or bower.json
+rm -rf node_modules
 npm install --production
+rm -rf bower_components
 bower install --config.interactive=false --allow-root
 
 # Restart the server