diff --git a/.env.example b/.env.example
index e6e509fc..bd205b61 100644
--- a/.env.example
+++ b/.env.example
@@ -40,9 +40,11 @@ SOCIAL_CONTENT_LLM_FALLBACK_MODEL=gpt-5.4
SOCIAL_CONTENT_LLM_TIMEOUT=60
# ── Database ──────────────────────────────────────────────────
-# Local default is SQLite when OPS_DATABASE_URL is unset. For the Postgres
-# migration/dev path, start docker-compose.postgres.yml and use:
-# OPS_DATABASE_URL=postgresql+psycopg://synapse_growing:synapse_growing_dev@127.0.0.1:54329/synapse_growing
+# PostgreSQL is required for runtime, local dev, tests, and CI.
+# Start docker-compose.postgres.yml locally and use:
+OPS_DATABASE_URL=postgresql+psycopg://synapse_growing:synapse_growing_dev@127.0.0.1:54329/synapse_growing_local
+# Optional dedicated test DB. CI sets this explicitly.
+OPS_TEST_POSTGRES_URL=postgresql+psycopg://synapse_growing:synapse_growing_dev@127.0.0.1:54329/synapse_growing_test
# OPS_DB_POOL_SIZE=12
# OPS_DB_MAX_OVERFLOW=24
@@ -182,9 +184,5 @@ OPS_PORT=9600
OPS_LOG_LEVEL=debug
X_OAUTH_REDIRECT_URI=http://127.0.0.1:9600/api/social/x/oauth/callback
-# ── Database ──────────────────────────────────────────────────
-# OPS_DB_PATH=
-# OPS_DATABASE_URL=
-
# ── CORS ──────────────────────────────────────────────────────
OPS_CORS_ORIGINS=*
diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml
index 183f26fb..ef91471f 100644
--- a/.github/workflows/pr-ci.yml
+++ b/.github/workflows/pr-ci.yml
@@ -24,6 +24,8 @@ concurrency:
env:
RIPGREP_VERSION: "15.1.0"
+ OPS_DATABASE_URL: postgresql+psycopg://synapse_growing:synapse_growing_dev@127.0.0.1:5432/synapse_growing_test
+ OPS_TEST_POSTGRES_URL: postgresql+psycopg://synapse_growing:synapse_growing_dev@127.0.0.1:5432/synapse_growing_test
jobs:
scope:
@@ -95,6 +97,20 @@ jobs:
needs: scope
if: needs.scope.outputs.run_full == 'true'
runs-on: ubuntu-latest
+ services:
+ postgres:
+ image: postgres:16-alpine
+ env:
+ POSTGRES_DB: synapse_growing_test
+ POSTGRES_USER: synapse_growing
+ POSTGRES_PASSWORD: synapse_growing_dev
+ ports:
+ - 5432:5432
+ options: >-
+ --health-cmd "pg_isready -U synapse_growing -d synapse_growing_test"
+ --health-interval 5s
+ --health-timeout 5s
+ --health-retries 20
steps:
- uses: actions/checkout@v4
with:
@@ -178,6 +194,20 @@ jobs:
needs: scope
if: needs.scope.outputs.run_full != 'true' && needs.scope.outputs.run_backend == 'true'
runs-on: ubuntu-latest
+ services:
+ postgres:
+ image: postgres:16-alpine
+ env:
+ POSTGRES_DB: synapse_growing_test
+ POSTGRES_USER: synapse_growing
+ POSTGRES_PASSWORD: synapse_growing_dev
+ ports:
+ - 5432:5432
+ options: >-
+ --health-cmd "pg_isready -U synapse_growing -d synapse_growing_test"
+ --health-interval 5s
+ --health-timeout 5s
+ --health-retries 20
steps:
- uses: actions/checkout@v4
with:
@@ -284,6 +314,20 @@ jobs:
needs: scope
if: needs.scope.outputs.run_full != 'true' && needs.scope.outputs.run_scope_self_test == 'true'
runs-on: ubuntu-latest
+ services:
+ postgres:
+ image: postgres:16-alpine
+ env:
+ POSTGRES_DB: synapse_growing_test
+ POSTGRES_USER: synapse_growing
+ POSTGRES_PASSWORD: synapse_growing_dev
+ ports:
+ - 5432:5432
+ options: >-
+ --health-cmd "pg_isready -U synapse_growing -d synapse_growing_test"
+ --health-interval 5s
+ --health-timeout 5s
+ --health-retries 20
steps:
- uses: actions/checkout@v4
with:
diff --git a/dashboard/src/pages/ProductionDeployModal.tsx b/dashboard/src/pages/ProductionDeployModal.tsx
index f0daed93..8b31d886 100644
--- a/dashboard/src/pages/ProductionDeployModal.tsx
+++ b/dashboard/src/pages/ProductionDeployModal.tsx
@@ -59,7 +59,7 @@ export default function ProductionDeployModal({
输入确认短语
onConfirmPhraseChange(event.target.value)}
/>
@@ -71,7 +71,7 @@ export default function ProductionDeployModal({