mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 11:52:07 +08:00
env.HOME删除,会影响Mac自动升级
This commit is contained in:
@@ -23,7 +23,6 @@ exports.start = function (argv) {
|
||||
argv.title = argv.title || `egg-server-${appName}`;
|
||||
|
||||
// normalize env
|
||||
env.HOME = baseDir;
|
||||
env.NODE_ENV = 'production';
|
||||
|
||||
// it makes env big but more robust
|
||||
@@ -36,10 +35,6 @@ exports.start = function (argv) {
|
||||
env.PATH || env.Path,
|
||||
].filter(x => !!x).join(path.delimiter);
|
||||
|
||||
// for alinode
|
||||
env.ENABLE_NODE_LOG = 'YES';
|
||||
env.NODE_LOG_DIR = env.NODE_LOG_DIR || path.join(baseDir, 'logs/alinode');
|
||||
|
||||
// cli argv -> process.env.EGG_SERVER_ENV -> `undefined` then egg will use `prod`
|
||||
if (argv.env) {
|
||||
// if undefined, should not pass key due to `spwan`, https://github.com/nodejs/node/blob/master/lib/child_process.js#L470
|
||||
|
||||
Reference in New Issue
Block a user