0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Trigger database ready event

no issue

- the database is ready when:
  1. knex-migrator health is green (or `knexMigrator.isDatabaseOK`)
  2. the settings where populated
This commit is contained in:
kirrg001 2018-04-15 23:53:18 +02:00
parent b2a8165d01
commit fabce59e0b

View file

@ -53,6 +53,9 @@ function init() {
return settings.init();
}).then(function () {
debug('Update settings cache done');
common.events.emit('db.ready');
// Full internationalization for core could be here
// in a future version with backend translations
// (settings for language and theme available here;