chore(env): WEB_PORT 统一回退为 5173 并烟雾检查改为可开关
- .env.example/docker-compose(.full).yml WEB_PORT 默认值 5273→5173(Vite 默认),CORS_ORIGINS 同步 - docker-compose 注入 WEB_PORT/SERVER_PORT 环境变量,健康检查端口随之更新 - start.sh 新增 SERVER_SMOKE_CHECK_ENABLED 开关,默认关闭烟雾检查,仅健康探测 - web/web_start.sh 适配端口 - .gitignore 补充忽略 tmp/ 运行时目录
This commit is contained in:
12
start.sh
12
start.sh
@@ -109,6 +109,7 @@ if [ "$ENV_OVERRIDE_ONLYOFFICE_JWT_SECRET_SET" = true ]; then
|
||||
fi
|
||||
|
||||
SERVER_STARTUP_TIMEOUT="${SERVER_STARTUP_TIMEOUT:-300}"
|
||||
SERVER_SMOKE_CHECK_ENABLED="${SERVER_SMOKE_CHECK_ENABLED:-false}"
|
||||
SETUP_COMPLETED="${SETUP_COMPLETED:-false}"
|
||||
APP_DEBUG="${APP_DEBUG:-true}"
|
||||
APP_ENV="${APP_ENV:-local}"
|
||||
@@ -220,7 +221,16 @@ probe_server_ready() {
|
||||
_health_url="${1:-$(server_probe_url)}"
|
||||
_smoke_url="${2:-$(server_smoke_url)}"
|
||||
|
||||
probe_server_health "$_health_url" && probe_server_smoke "$_smoke_url"
|
||||
probe_server_health "$_health_url" || return 1
|
||||
|
||||
case "$SERVER_SMOKE_CHECK_ENABLED" in
|
||||
1|true|TRUE|yes|YES|on|ON)
|
||||
probe_server_smoke "$_smoke_url"
|
||||
return $?
|
||||
;;
|
||||
esac
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
prepare_web() {
|
||||
|
||||
Reference in New Issue
Block a user