Commit 23a5a4cc by 蒋勇

d

parent 9d88930c
...@@ -263,10 +263,10 @@ var settings = { ...@@ -263,10 +263,10 @@ var settings = {
return localsettings.redis; return localsettings.redis;
}else { }else {
return { return {
host:"xxxxx", host:ENVINPUT.REDIS_HOST,
port:xxxxx, port:ENVINPUT.REDIS_PORT,
password:"xxxxx", password:ENVINPUT.REDIS_PWD,
db:xx, db:ENVINPUT.REDIS_DB,
}; };
} }
}, },
...@@ -276,11 +276,11 @@ var settings = { ...@@ -276,11 +276,11 @@ var settings = {
return localsettings.database; return localsettings.database;
}else{ }else{
return { return {
dbname : "xxxxx", dbname : ENVINPUT.DB_NAME,
user : "xxxx", user : ENVINPUT.DB_USER,
password : "xxxxx", password : ENVINPUT.DB_PWD,
config : { config : {
host: 'xxxxxx', host: ENVINPUT.DB_HOST,
dialect: 'mysql', dialect: 'mysql',
operatorsAliases: false, operatorsAliases: false,
pool: { pool: {
...@@ -324,4 +324,5 @@ var settings = { ...@@ -324,4 +324,5 @@ var settings = {
} }
}; };
settings.ENVINPUT=ENVINPUT;
module.exports = settings; module.exports = settings;
\ No newline at end of file
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