|
|
@ -82,7 +82,7 @@ chmod +x /home/$USER/crond/playground-sync.sh |
|
|
|
read -r -d '' VAR <<EOF |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
su -c 'cd /home/$USER/$REPO/swarmlab-app/src; npm install; npm install express --save; ' - node |
|
|
|
su -c 'cd /home/$USER/$REPO/swarmlab-app/src; npm install; npm install express --save; npm install express -g ' - node |
|
|
|
#su -c 'cd /home/$USER/$REPO/swarmlab-app/src; npm install; npm install express --save; npm cache clean --force;' - node |
|
|
|
#su -c 'pm2-runtime /home/$USER/crond/playground.config.js' - node |
|
|
|
|
|
|
@ -96,8 +96,8 @@ echo "$VAR" > /home/$USER/crond/playground-npm-install.sh |
|
|
|
read -r -d '' VAR <<EOF |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
export NODE_PATH=/home/$USER/$REPO/swarmlab-app/src/node_modules |
|
|
|
cd /home/$USER/$REPO/swarmlab-app/src; npm install express --save; sleep 5; pm2-runtime /home/$USER/crond/playground.config.js |
|
|
|
export NODE_PATH=/home/$USER/$REPO/swarmlab-app/src/node_modules:/usr/local/lib/node_modules/npm/node_modules |
|
|
|
cd /home/$USER/$REPO/swarmlab-app/src; npm install express --save; pm2-runtime /home/$USER/crond/playground.config.js |
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|