Улучшение развертывания службы: добавлено управление статусом и журналом службы после перезапуска
Deploy scripts to remote server / Upload and deploy on 192.168.10.14 (push) Successful in 7s
Deploy scripts to remote server / Upload and deploy on 192.168.10.14 (push) Successful in 7s
This commit is contained in:
@@ -275,6 +275,13 @@ jobs:
|
||||
echo \">>> config.json deployed to: ${CONFIG_DEST}\"; \
|
||||
sudo rm -rf \"\${TMP_DIR}\" /tmp/configure_nginx_manager_deploy.tar.gz; \
|
||||
sudo systemctl daemon-reload; \
|
||||
sudo systemctl restart \"${DEPLOY_SERVICE}\"; \
|
||||
sudo systemctl enable \"${DEPLOY_SERVICE}\"; \
|
||||
sudo systemctl --no-pager --full status \"${DEPLOY_SERVICE}\" | head -n 30 || true"
|
||||
sudo systemctl enable \"${DEPLOY_SERVICE}\" || true; \
|
||||
echo \">>> Starting service...\"; \
|
||||
sudo systemctl restart \"${DEPLOY_SERVICE}\" || true; \
|
||||
sleep 2; \
|
||||
echo \">>> Service status:\"; \
|
||||
sudo systemctl --no-pager --full status \"${DEPLOY_SERVICE}\" | head -n 30 || true; \
|
||||
echo \">>> Last journal entries:\"; \
|
||||
sudo journalctl -u \"${DEPLOY_SERVICE}\" -n 30 --no-pager || true; \
|
||||
echo \">>> Config used:\"; \
|
||||
sudo cat \"${CONFIG_DEST}\" | python3 -c \"import json,sys; c=json.load(sys.stdin); c['regru_password']='***'; c['npm_password']='***'; print(json.dumps(c,indent=2,ensure_ascii=False))\" || true"
|
||||
|
||||
Reference in New Issue
Block a user