diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 361e295..32401af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,4 +15,4 @@ deploy: - ssh-keyscan -H "$VPS_HOST" >> ~/.ssh/known_hosts script: - - ssh "$VPS_USER@$VPS_HOST" "cd /var/www/status && git pull origin main && npm install --production && pm2 restart status || pm2 start server.js --name status" \ No newline at end of file + - ssh "$VPS_USER@$VPS_HOST" "cd /var/www/status && git fetch origin main && git reset --hard origin/main && pm2 restart status || pm2 start server.js --name status && pm2 save" \ No newline at end of file