diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 582faa03edbda331f9cbc1176820a268f5ea81e3..5202aa75149d0129e96a189b843b8942d7554060 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 7827178399d90739a0b491ff7d8ed9efdf75f3aa..3cde535eb821aa6e756e3ce4c6801934ae53dfb2 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