zeus 4 years ago
parent
commit
64edd64aca
  1. 2
      Dockerfile
  2. 2
      startup.sh

2
Dockerfile

@ -63,7 +63,7 @@ RUN mkdir -p /home/node/log \
&& mkdir -p /home/node/crond \
&& mkdir -p /home/node/run \
&& mkdir -p /run/nginx \
&& npm install pm2@latest express -g \
&& npm install pm2@latest -g \
&& chmod -R 755 /home/node \
&& chmod +x /usr/local/bin/mpi_bootstrap \
&& chmod +x /home/node/startup.sh \

2
startup.sh

@ -78,7 +78,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 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

Loading…
Cancel
Save