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:
parent
067b93abfd
commit
eff8e321f6
@ -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 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user