Skip to content

Commit

Permalink
fix: fix default logdir for alinode plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Feb 11, 2019
1 parent a701560 commit 1f737f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/midway-web/config/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ module.exports = (appInfo) => {
]
};

let alinodeLogdir = path.join(appInfo.root, 'logs/alinode');
// try to use NODE_LOG_DIR first
if (process.env.NODE_LOG_DIR) {
alinodeLogdir = process.env.NODE_LOG_DIR;
}

exports.alinode = {
logdir: path.join(appInfo.root, 'logs/alinode'),
logdir: alinodeLogdir,
error_log: [
path.join(appInfo.root, `logs/${appInfo.pkg.name}/common-error.log`),
path.join(appInfo.root, 'logs/stderr.log'),
Expand Down

0 comments on commit 1f737f7

Please sign in to comment.