From 2ce2e0942f2a3e3a548592a53194fcc778ad8312 Mon Sep 17 00:00:00 2001 From: Levi Olson Date: Mon, 20 Jul 2020 14:30:08 -0500 Subject: [PATCH] Updating deployment to new server --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a04d420..b84dea4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - master