chore: harden preproduction deployment

This commit is contained in:
hectorzhao
2026-07-27 22:17:48 +08:00
parent df70b336a0
commit 7c1a0287a0
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -61,6 +61,9 @@ echo "[deploy] Ensuring production admin"
PROD_ADMIN_CREDENTIAL_FILE="$ADMIN_CREDENTIAL_FILE" node tools/deploy/ensure-production-admin.mjs
chmod 600 "$ADMIN_CREDENTIAL_FILE" || true
echo "[deploy] Ensuring runtime log directories"
install -d -m 0755 "$APP_DIR/logs/api" "$APP_DIR/logs/gateway"
echo "[deploy] Restarting services"
systemctl daemon-reload
if [[ "${OBJECT_STORAGE_DRIVER:-minio}" == "local" ]]; then