chore(dev): 配置本地开发环境
引入 devenv 与 starship 配置,统一 Go/Node/Postgres 开发依赖与快捷命令。 同时让脚本在使用本地数据库环境时跳过 Docker 创建步骤。
This commit is contained in:
+5
-1
@@ -68,7 +68,11 @@ export AI_GATEWAY_DATABASE_URL="${AI_GATEWAY_DATABASE_URL:-postgresql://${AI_GAT
|
||||
|
||||
echo "[ai-gateway] using database: ${AI_GATEWAY_DATABASE_URL}"
|
||||
|
||||
scripts/create-database.sh
|
||||
if [[ "${AI_GATEWAY_SKIP_DB_CREATE:-}" == "1" ]]; then
|
||||
echo "[ai-gateway] skipping Docker database creation"
|
||||
else
|
||||
scripts/create-database.sh
|
||||
fi
|
||||
pnpm nx run api:migrate
|
||||
stop_stale_api_processes
|
||||
exec pnpm nx run-many -t dev -p api web --parallel=2
|
||||
|
||||
Reference in New Issue
Block a user