From 695417466d10bbe2b87fe72c0ff1e2faa4d2f667 Mon Sep 17 00:00:00 2001
From: janloe <janloe@stud.ntnu.no>
Date: Wed, 15 Apr 2020 18:46:27 +0200
Subject: [PATCH] one more pipeline 4 now with correct keys!

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e07ee2f..504ba0b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,6 +35,7 @@ deploy:
     - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
     - apt-get update
     - apt-get install --assume-yes rsync
-    - ssh app@10.52.234.171 -Tv
+    - rsync --archive --delete --exclude='.git' --exclude='node_modules' . app@10.52.234.171:app
+    - ssh app@10.52.234.171 systemctl --user restart app
   only:
     - master
-- 
GitLab