|
@ -31,9 +31,9 @@ deploy_prod: |
|
|
script: |
|
|
script: |
|
|
- echo "Deploying to Production" |
|
|
- echo "Deploying to Production" |
|
|
- npm install |
|
|
- npm install |
|
|
- ssh root@206.189.236.142 "cd /opt/apps/leviolson.com && git pull && npm install && bash -c \"pm2 stop LeviOlson.com && pm2 delete LeviOlson.com && pm2 start app.js --name LeviOlson.com && pm2 logs --nostream --lines 2 LeviOlson.com && exit 0\" && exit 0" |
|
|
|
|
|
|
|
|
- ssh root@68.183.173.226 "cd /opt/website && git pull && npm install && bash -c \"pm2 stop LeviOlson && pm2 delete LeviOlson && pm2 start app.js --name LeviOlson --watch && pm2 logs --nostream --lines 2 LeviOlson && exit 0\" && exit 0" |
|
|
environment: |
|
|
environment: |
|
|
name: production |
|
|
name: production |
|
|
url: https://leviolson.com |
|
|
url: https://leviolson.com |
|
|
only: |
|
|
only: |
|
|
- master |
|
|
|
|
|
|
|
|
- master |