KTVSinglePublisher V.0.0.3

DB 指向問題
This commit is contained in:
allen.yan 2025-06-18 15:31:01 +08:00
parent 31bd99681d
commit abd0ebb455
2 changed files with 7 additions and 0 deletions

View File

@ -13,13 +13,18 @@ services:
environment:
REPO_URL: ${REPO_URL}
BRANCH: ${REPO_BRANCH:-main}
DB_HOST: mariadb
DB_PORT: 3306
APP_NAME: ${APP_NAME}
APP_URL: ${APP_URL}
NGINX_HOST: ${APP_DOMAIN}
NGINX_PORT: ${APP_PORT:-80}
networks:
- mariadb_internal
- app_network
networks:
mariadb_internal:
external: true
app_network:
driver: bridge

View File

@ -23,6 +23,8 @@ cd "$TARGET_DIR"
update_env() { local k=$1 v=$2; grep -q "^$k=" .env && sed -i "s|^$k=.*|$k=$v|" .env || echo "$k=$v" >> .env; }
update_env APP_NAME "$APP_NAME"
update_env APP_URL "${APP_URL%/}"
update_env DB_HOST "$DB_HOST"
update_env DB_PORT "$DB_PORT"
php artisan key:generate --force
php artisan migrate --force