不要怂,就是干,撸起袖子干!

Commit 6691524e by Josh Marchán

Oops, these should be directly on config

1 parent 17286e83
Showing with 3 additions and 3 deletions
...@@ -105,10 +105,10 @@ if(program.migrate) { ...@@ -105,10 +105,10 @@ if(program.migrate) {
if(process.env[value]) { if(process.env[value]) {
var db_info = process.env[value].match( var db_info = process.env[value].match(
/([^:]+):\/\/([^:]+):([^@]+)@([^:]+):(\d+)\/(.+)/); /([^:]+):\/\/([^:]+):([^@]+)@([^:]+):(\d+)\/(.+)/);
config.database = db_info[6];
config.username = db_info[2];
config.password = db_info[3];
options = _.extend(options, { options = _.extend(options, {
database: db_info[6],
username: db_info[2],
password: db_info[3],
host: db_info[4], host: db_info[4],
port: db_info[5], port: db_info[5],
dialect: db_info[1], dialect: db_info[1],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!