Ghost/MigratorConfig.js
Katharina Irrgang 0b68458eb7 🎨 optimise requires for MigratorConfig (#8088)
no issue

- if knex-migrator loads the MigratorConfig too much stuff was required, which increases the memory usage
- i have deleted the IncorrectUsage errors for now, because this error should actually never appear
2017-03-02 16:02:23 +00:00

15 lines
453 B
JavaScript

var config = require('./core/server/config'),
ghostVersion = require('./core/server/utils/ghost-version');
/**
* knex-migrator can be used via CLI or within the application
* when using the CLI, we need to ensure that our global overrides are triggered
*/
require('./core/server/overrides');
module.exports = {
currentVersion: ghostVersion.safe,
database: config.get('database'),
migrationPath: config.get('paths:migrationPath')
};