Commit b50561aa by 蒋勇

init

parent 519e9771
......@@ -54,10 +54,10 @@ var settings = {
return localsettings.redis;
}else {
return {
host:"xxxxx",
port:xxxxx,
password:"xxxxx",
db:xx,
host:ENVINPUT.REDIS_HOST,
port:ENVINPUT.REDIS_PORT,
password:ENVINPUT.REDIS_PWD,
db:ENVINPUT.REDIS_DB,
};
}
},
......@@ -67,11 +67,11 @@ var settings = {
return localsettings.database;
}else{
return {
dbname : "xxxxx",
user : "xxxx",
password : "xxxxx",
dbname : ENVINPUT.DB_NAME,
user : ENVINPUT.DB_USER,
password : ENVINPUT.DB_PWD,
config : {
host: 'xxxxxx',
host: ENVINPUT.DB_HOST,
dialect: 'mysql',
operatorsAliases: false,
pool: {
......@@ -90,4 +90,5 @@ var settings = {
}
}
};
settings.ENVINPUT=ENVINPUT;
module.exports = settings;
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