ops: move production service to port 18080
Verify and deploy production / verify-and-deploy (push) Successful in 2m29s

This commit is contained in:
2026-10-05 10:42:56 +08:00
parent fbca08c8e0
commit 8b64d46738
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -39,7 +39,6 @@ jobs:
- name: Deploy persistent production service
if: gitea.event_name == 'workflow_dispatch' || (gitea.event_name == 'push' && gitea.ref == 'refs/heads/main')
env:
DEPLOY_PORT: ${{ vars.DEPLOY_PORT }}
RELEASE_SHA: ${{ gitea.sha }}
run: |
set -eu
@@ -52,7 +51,7 @@ jobs:
exit 1
fi
PORT="${DEPLOY_PORT:-3000}"
PORT=18080
APP_ROOT=/opt/rednote-tool-studio
RELEASE_DIR="$APP_ROOT/releases/$RELEASE_SHA"
DATA_ROOT=/var/lib/rednote-tool-studio
+1 -1
View File
@@ -9,7 +9,7 @@ const previous = `${service}-previous`;
const volume = `${service}-data`;
const sha = (process.env.GITHUB_SHA || process.env.CI_COMMIT_SHA || "dev").slice(0, 12);
const image = `${service}:${sha}`;
const port = process.env.DEPLOY_PORT || "3000";
const port = process.env.DEPLOY_PORT || "18080";
const dockerfile = process.env.DEPLOY_DOCKERFILE || "Dockerfile";
const usePrebuiltOutput = dockerfile === "Dockerfile.deploy";