- 新增 .env 文件,定义服务器端口和 IP 地址 - 创建 .gitignore 文件,忽略 node_modules 目录 - 修改 start.js,从环境变量中读取配置 - 初始化 package-lock.json 和 package.json - 添加 dotenv 依赖用于加载环境变量
18 lines
293 B
JSON
18 lines
293 B
JSON
{
|
|
"name": "node-mir-server",
|
|
"version": "1.0.0",
|
|
"description": "冰雪传奇服务端",
|
|
"scripts": {
|
|
"gateway": "node GateServer/start.js"
|
|
},
|
|
"keywords": [
|
|
"mir",
|
|
"server"
|
|
],
|
|
"author": "kubbo",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"dotenv": "^16.4.7"
|
|
}
|
|
}
|