diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e07ee2fc3df494e703075dd24c3b30a130c2b554..504ba0b1512349424be324431c1b2c8066269fe0 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