config port

This commit is contained in:
gaoshuaixing
2020-11-05 19:18:41 +08:00
parent f2111b29f4
commit fb550c2e87
2 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
'use strict';
const path = require('path');
const electronConfig = require('../electron/config').get()
/**
* @param {Egg.EggAppInfo} appInfo app info
*/
@@ -25,8 +27,8 @@ module.exports = appInfo => {
config.cluster = {
listen: {
port: 7068,
hostname: '0.0.0.0',
port: electronConfig.egg.port || 7068,
hostname: electronConfig.egg.hostname || '0.0.0.0',
// path: '/var/run/egg.sock',
},
};