Update .gitlab-ci.yml file

This commit is contained in:
2025-10-05 18:45:24 +00:00
parent daa72c3b42
commit a2ce2b2551
+1 -1
View File
@@ -65,7 +65,7 @@ deploy_to_production:
- cp $SSH_PRIVATE_KEY ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
# Добавляем хост в known_hosts
- ssh-keyscan -H $APP_HOST >> ~/.ssh/known_hosts 2>/dev/null
- ssh-keyscan -H $APP_HOST_IP >> ~/.ssh/known_hosts 2>/dev/null
script:
- echo "Deploying to production server..."
# Подключаемся по SSH и выполняем команды уже на сервере app01