From 49567a2469ffa903019416dca63ea7cce2e07da6 Mon Sep 17 00:00:00 2001 From: CancerAi Date: Mon, 12 Oct 2026 11:47:13 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=96=B0=E5=A2=9E=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ deploy.sh | 1 + src/index.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index a14702c..491feb3 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json # Finder (MacOS) folder config .DS_Store + +build/ \ No newline at end of file diff --git a/deploy.sh b/deploy.sh index 1de5557..f3ab664 100644 --- a/deploy.sh +++ b/deploy.sh @@ -8,6 +8,7 @@ # Project env # DB_HOST +# DB_PORT # DB_USER_NAME # DB_USER_PASSWD # DB_NAME diff --git a/src/index.ts b/src/index.ts index 3eace1f..1d167fa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,7 @@ const app = appTmp.basePath("/auth") const db = new SQL({ "adapter": "mariadb", "host": Bun.env.DB_HOST ?? "localhost", + "port": Bun.env.DB_PORT ?? "3306", "user": Bun.env.DB_USER_NAME ?? "root", "password": Bun.env.DB_USER_PASSWD ?? "root", "database": Bun.env.DB_NAME ?? "user_auth",