|
@ -82,7 +82,7 @@ chmod +x /home/$USER/crond/playground-sync.sh |
|
|
read -r -d '' VAR <<EOF |
|
|
read -r -d '' VAR <<EOF |
|
|
#!/bin/bash |
|
|
#!/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 '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 |
|
|
#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 |
|
|
read -r -d '' VAR <<EOF |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
export NODE_PATH=/home/$USER/$REPO/swarmlab-app/src/node_modules |
|
|
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; sleep 5; pm2-runtime /home/$USER/crond/playground.config.js |
|
|
cd /home/$USER/$REPO/swarmlab-app/src; npm install express --save; pm2-runtime /home/$USER/crond/playground.config.js |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
EOF |
|
|