From 1e0f3b6061968877ffc2cbc7c87460f89d2a59c5 Mon Sep 17 00:00:00 2001 From: Kishan Takoordyal Date: Sun, 4 Apr 2021 01:56:58 +0400 Subject: [PATCH] add ci/cd --- .gitlab-ci.yml | 2 +- buildScript.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59224dc..f535241 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,4 +14,4 @@ deploy: - chmod 644 ~/.ssh/known_hosts - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' script: - - ssh ubuntu@kinesis.games "cd /var/www/proximity-demo/ && sudo bash buildScript.sh" + - ssh edgeking810@kinesis.games "cd /var/www/proximity-demo/ && sudo bash buildScript.sh" diff --git a/buildScript.sh b/buildScript.sh index efbe54c..aa95198 100755 --- a/buildScript.sh +++ b/buildScript.sh @@ -4,4 +4,4 @@ git pull origin master npm i npm run-script build chown -R root:www-data . -systemctl reload apache2 +systemctl reload nginx