1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

fix option to migrator

This commit is contained in:
sveisvei 2016-11-13 20:43:29 +01:00
parent bb4cf30d22
commit 6cdb905cae

View File

@ -36,9 +36,10 @@ function start (opts) {
throw new Error('You must either pass databaseUri option or set environemnt variable DATABASE_URL');
}
return migrator(options.databaseUri)
return migrator({ databaseUri: options.databaseUri })
.catch(err => logger.error('failed to migrate db', err))
.then(() => createApp(options))
.catch(err => logger.error('failed to migrate db', err));
.catch(err => logger.error('failed creating app', err));
}
process.on('uncaughtException', err => {