mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
moved sync to initial_tasks prevent race conditions
This commit is contained in:
@@ -2,7 +2,7 @@ var Sequelize = require('sequelize');
|
||||
|
||||
/* http://sequelizejs.com/articles/heroku */
|
||||
var parseUrl = function(url) {
|
||||
var match = url.match(/([\w]+):\/\/([^:]+):([^@]+)@([^:]+):(\d+)\/(.+)/);
|
||||
var match = url.match(/([\w]+):\/\/([^:]+):([^@]*)@([^:]*):(\d*)\/(.+)/);
|
||||
db = {
|
||||
database : match[6],
|
||||
username : match[2],
|
||||
@@ -23,4 +23,3 @@ module.exports = {
|
||||
return new Sequelize(db.database, db.username, db.password, db.options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user