From 15c7c9b2f294861e99b70d167a14e6aa34b9e833 Mon Sep 17 00:00:00 2001 From: Eric Younger <eric.younger@ntnu.no> Date: Fri, 3 Apr 2020 16:30:03 +0200 Subject: [PATCH] finished assignment --- .gitlab-ci.yml | 2 ++ public/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 582faa0..5202aa7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,7 @@ flow: deploy: + stage: deploy script: - mkdir ~/.ssh - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts @@ -35,5 +36,6 @@ deploy: - apt-get update - apt-get install --assume-yes rsync - rsync --archive --delete --exclude='.git' --exclude='node_modules' . app@129.241.96.121:app + - ssh app@129.241.96.121 systemctl --user restart app only: - master \ No newline at end of file diff --git a/public/index.html b/public/index.html index 7827178..3cde535 100644 --- a/public/index.html +++ b/public/index.html @@ -4,6 +4,6 @@ <meta charset="UTF-8" /> </head> <body> - This is App updated22 + This is App updated with restart enabled </body> </html> \ No newline at end of file -- GitLab