moved sync to initial_tasks prevent race conditions

This commit is contained in:
2016-02-02 20:35:49 +08:00
parent dd640e8097
commit d9fbf77aa1
+1 -2
View File
@@ -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);
}
}