Commit edcd98ae authored by 郝聪敏's avatar 郝聪敏

test: 修改环境变量判断

parent c73c5c89
...@@ -33,7 +33,7 @@ export default (appInfo: EggAppConfig) => { ...@@ -33,7 +33,7 @@ export default (appInfo: EggAppConfig) => {
console.log('process.env.NODE_ENV', process.env.NAMESPACE); console.log('process.env.NODE_ENV', process.env.NAMESPACE);
exports.sequelize = process.env.NAMESPACE ? localMysqlConfig : prodMysqlConfig; exports.sequelize = process.env.NAMESPACE !== 'pro-node' ? localMysqlConfig : prodMysqlConfig;
return exports; return exports;
}; };
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"backend": "nohup egg-scripts start --port 7001 --workers 4", "backend": "nohup egg-scripts start --port 7001 --workers 4",
"dev": "egg-bin dev -r egg-ts-helper/register", "dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug -r egg-ts-helper/register", "debug": "egg-bin debug -r egg-ts-helper/register",
"build": "easy build --devtool", "build": "easy build --devtool --size",
"tsc": "ets && tsc -p tsconfig.json", "tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean", "clean": "ets clean",
"kill": "easy kill", "kill": "easy kill",
......
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