数据库配置
This commit is contained in:
parent
163d0cd8ce
commit
ec5b2022cc
4
.gitignore
vendored
4
.gitignore
vendored
@ -17,8 +17,8 @@ target/
|
||||
*.sqlite3
|
||||
|
||||
# 环境变量(含敏感信息,不提交)
|
||||
.env
|
||||
.env.local
|
||||
#.env
|
||||
#.env.local
|
||||
# .env.production 只含 API 地址,允许提交
|
||||
# .env.production
|
||||
|
||||
|
||||
6
reading-platform-backend/.env
Normal file
6
reading-platform-backend/.env
Normal file
@ -0,0 +1,6 @@
|
||||
DATABASE_URL="file:./dev.db"
|
||||
NODE_ENV=development
|
||||
PORT=3000
|
||||
JWT_SECRET="your-super-secret-jwt-key"
|
||||
JWT_EXPIRES_IN="7d"
|
||||
FRONTEND_URL="http://localhost:5173"
|
||||
@ -1,4 +1,4 @@
|
||||
DATABASE_URL="file:/Users/retirado/ccProgram/reading-platform-backend/dev.db"
|
||||
DATABASE_URL="file:./dev.db"
|
||||
NODE_ENV=development
|
||||
PORT=3000
|
||||
JWT_SECRET="your-super-secret-jwt-key"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user