Commit 2029fc3c authored by huanglu's avatar huanglu

feat: config

parent 2dd25803
import { EggAppConfig, PowerPartial } from 'egg';
export default () => {
const config: PowerPartial<EggAppConfig> = {};
const cluster = {
listen: {
port: 7001,
hostname: '0,0,0,0', // 不建议设置 hostname 为 '0.0.0.0',它将允许来自外部网络和来源的连接,请在知晓风险的情况下使用
},
};
const config: PowerPartial<EggAppConfig> = {
cluster,
};
return config;
};
......@@ -8,7 +8,7 @@
"declarations": true
},
"scripts": {
"start": "egg-scripts start --daemon --title=egg-websocket --sticky",
"start": "npm run tsc && egg-scripts start --daemon --title=egg-websocket --sticky",
"stop": "egg-scripts stop --title=egg-server-geek-egg",
"dev": "egg-bin dev --sticky",
"debug": "egg-bin debug",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment