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:
parent
b2a8165d01
commit
fabce59e0b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue