diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0add276683fbf14f5bdda9b064116d2d15aec1f2..b60dfe90609a9202328390fc7343325079b871c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,10 +33,10 @@ deploy: - touch ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa # Required permission by ssh - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - - scp public/index.html app@10.52.203.68:app/public - #- apt-get update - #- apt-get install --assume-yes rsync - #- rsync --archive --delete --exclude='.git' --exclude='node_modules' . app@10.52.203.68 - #- ssh app@10.52.203.68 systemctl --user restart app + #- scp public/index.html app@10.52.203.68:app/public + - apt-get update + - apt-get install --assume-yes rsync + - rsync --archive --delete --exclude='.git' --exclude='node_modules' . app@10.52.203.68:app + - ssh app@10.52.203.68 systemctl --user restart app only: - master