Fix API port conflict default 23568, bcrypt registration, clearer login errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-28 13:04:59 +08:00
parent 8652476abc
commit 2a5fb5f469
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ set -euo pipefail
REPO_URL="${REPO_URL:-https://git.bz121.com/dekun/secondary-school-grade-archive.git}"
INSTALL_DIR="${INSTALL_DIR:-/opt/secondary-school-grade-archive}"
WEB_PORT="${WEB_PORT:-23566}"
API_PORT="${API_PORT:-8000}"
API_PORT="${API_PORT:-23568}"
BRANCH="${BRANCH:-main}"
NODE_MAJOR="${NODE_MAJOR:-20}"
PIP_MIRROR="${PIP_MIRROR:-https://pypi.tuna.tsinghua.edu.cn/simple}"
+1 -1
View File
@@ -27,7 +27,7 @@ function loadEnv() {
const env = loadEnv()
const webPort = env.WEB_PORT || '23566'
const apiPort = env.API_PORT || '8000'
const apiPort = env.API_PORT || '23568'
const venvPython = path.join(root, 'backend', 'venv', 'bin', 'python')
module.exports = {
+1 -1
View File
@@ -9,7 +9,7 @@ if (fs.existsSync(envPath)) {
}
const PORT = Number(process.env.WEB_PORT || 23566)
const API_TARGET = process.env.API_TARGET || 'http://127.0.0.1:8000'
const API_TARGET = process.env.API_TARGET || 'http://127.0.0.1:23568'
const STATIC_ROOT = path.join(__dirname, '../../frontend/dist')
const app = express()