Browse Source

Updating deployment to new server

tesla
Levi Olson 4 years ago
committed by GitHub
parent
commit
2ce2e0942f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      .gitlab-ci.yml

+ 2
- 2
.gitlab-ci.yml View File

@ -31,9 +31,9 @@ deploy_prod:
script:
- echo "Deploying to Production"
- 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:
name: production
url: https://leviolson.com
only:
- master
- master

Loading…
Cancel
Save