egg-core
Advanced tools
Comparing version 4.13.3 to 4.14.0
4.14.0 / 2019-02-03 | ||
================== | ||
**features** | ||
* [[`2eb0076`](http://github.com/eggjs/egg-core/commit/2eb007695e9509eb41d8e86032c7739d085d3d2c)] - feat: support options.env to specific server env (#199) (Yiyu He <<dead_horse@qq.com>>) | ||
4.13.3 / 2019-01-30 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -124,2 +124,3 @@ 'use strict'; | ||
serverScope: options.serverScope, | ||
env: options.env, | ||
}); | ||
@@ -126,0 +127,0 @@ } |
@@ -106,6 +106,6 @@ 'use strict'; | ||
getServerEnv() { | ||
let serverEnv; | ||
let serverEnv = this.options.env; | ||
const envPath = path.join(this.options.baseDir, 'config/env'); | ||
if (fs.existsSync(envPath)) { | ||
if (!serverEnv && fs.existsSync(envPath)) { | ||
serverEnv = fs.readFileSync(envPath, 'utf8').trim(); | ||
@@ -112,0 +112,0 @@ } |
{ | ||
"name": "egg-core", | ||
"version": "4.13.3", | ||
"version": "4.14.0", | ||
"description": "A core Pluggable framework based on koa", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
105577
2436