1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +02:00

fix option to migrator

This commit is contained in:
sveisvei 2016-11-13 20:43:29 +01:00 committed by Ivar Conradi Østhus
parent 067b93abfd
commit eff8e321f6

View File

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