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",