feat(env): 添加环境变量配置并初始化项目
- 新增 .env 文件,定义服务器端口和 IP 地址 - 创建 .gitignore 文件,忽略 node_modules 目录 - 修改 start.js,从环境变量中读取配置 - 初始化 package-lock.json 和 package.json - 添加 dotenv 依赖用于加载环境变量
This commit is contained in:
@@ -10,5 +10,8 @@
|
||||
"server"
|
||||
],
|
||||
"author": "kubbo",
|
||||
"license": "ISC"
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"dotenv": "^16.4.7"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user