From 5faa1e6ccdf5ccd9ffe1c6cb0592ba85e10b6842 Mon Sep 17 00:00:00 2001 From: Sander August Heggland Schrader <saschrad@stud.ntnu.no> Date: Tue, 3 May 2022 09:18:02 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6a365e9..829d956 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ deploy-backend: - apt install --assume-yes rsync - apt install --assume-yes openssh-client - ssh -i $ID_RSA -o StrictHostKeyChecking=no $SERVERUSER@$SERVERIP "sudo /bin/systemctl restart cleanfront.service" - - rsync --archive --rsync-path=/usr/bin/rsync --delete --exclude='.git' -e "ssh -i $ID_RSA -o StrictHostKeyChecking=no -l gutta -p 22" . $SERVERIP:./app/frontend + - rsync --archive --rsync-path=/usr/bin/rsync --delete --exclude='.git' --exclude='node_modules' -e "ssh -i $ID_RSA -o StrictHostKeyChecking=no -l gutta -p 22" . $SERVERIP:./app/frontend - ssh -i $ID_RSA -o StrictHostKeyChecking=no $SERVERUSER@$SERVERIP "npm install" - ssh -i $ID_RSA -o StrictHostKeyChecking=no $SERVERUSER@$SERVERIP "sudo /bin/systemctl restart frontend.service" only: -- GitLab