Skip to content

Commit

Permalink
aggiornato script deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdslp committed Mar 27, 2020
1 parent 36876b0 commit c625079
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ npm run build
cd ~/DNSServerApp/backend;
npm install
npm run be:build
cd ~/DNSServerApp/frontend
npm install
npm run build
cd ~/DNSServerApp/backend
NODE_ENV=staging pm2 start dist/main.js --name "dnsserverapp" && cd ~/ && pm2 startup > pm2_startup_output;
tail -n 1 pm2_startup_output > pm2_startup.sh && chmod u+rwx pm2_startup.sh && ./pm2_startup.sh && pm2 save

0 comments on commit c625079

Please sign in to comment.