diff --git a/.github/workflows/deploy-service.yml b/.github/workflows/deploy-service.yml index da1f067..24f674d 100644 --- a/.github/workflows/deploy-service.yml +++ b/.github/workflows/deploy-service.yml @@ -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"