mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
0b68458eb7
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
15 lines
453 B
JavaScript
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')
|
|
};
|