From dc6c865be7918ffd940f48e3c17393600941d39a Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Fri, 13 Mar 2026 15:01:06 +0000 Subject: [PATCH] deploy.sh: auto-reload Apache after deploy Co-Authored-By: Claude Sonnet 4.6 --- deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 291e5dd..8a8c69e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -208,8 +208,11 @@ if docker compose -f "${COMPOSE_FILE}" exec -T postgres pg_isready -U pdf_checke fi log "" -log "Next steps:" +log "Reloading Apache..." +sudo systemctl reload apache2 && log "Apache reloaded" || warn "Apache reload failed — run: sudo systemctl reload apache2" + +log "" +log "Next steps (if first deploy):" log " 1. Ensure pdf-api-invoker-key.json is at the GCP_SA_KEY_PATH location" log " 2. Review ${WEB_DIR}/.env (especially CLOUD_RUN_URL and API keys)" -log " 3. Restart Apache: sudo systemctl reload apache2" log ""