Explorar o código

Fix install & update scripts

Gaël Métais %!s(int64=10) %!d(string=hai) anos
pai
achega
7485f00f2f
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 2 3
      server_config/server_install.sh
  2. 2 1
      server_config/server_update.sh

+ 2 - 3
server_config/server_install.sh

@@ -12,8 +12,8 @@ sudo apt-get install -y nodejs
 source ~/.profile
 
 # Installation of some packages globally
-npm install bower -g
-npm install forever -g
+npm install bower forever grunt-cli phantomjs -g
+source ~/.profile
 
 # Installation of YellowLabTools
 sudo mkdir /space
@@ -25,7 +25,6 @@ npm install
 bower install --config.interactive=false --allow-root
 
 # Front-end compilation
-npm install grunt -g
 grunt build
 
 # Start the server

+ 2 - 1
server_config/server_update.sh

@@ -18,7 +18,8 @@ bower install --config.interactive=false --allow-root
 
 # Front-end compilation
 rm -rf front/build
-npm install -g grunt
+npm install grunt-cli -g
+npm install phantomjs -g
 grunt build
 
 # Restart the server