Skip to content

Commit

Permalink
馃帹 add knexMigratorFilePath for knex-migrator initialisation (#7583)
Browse files Browse the repository at this point in the history
no issue
- if we don't pass our root path, it can happen that knex-migrator get's the wrong path when looking for the .knex-migrator file
  • Loading branch information
kirrg001 authored and ErisDS committed Oct 17, 2016
1 parent d2d0d80 commit 133b7e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/server/index.js
Expand Up @@ -30,7 +30,9 @@ var debug = require('debug')('ghost:boot:init'),
scheduling = require('./scheduling'),
readDirectory = require('./utils/read-directory'),
utils = require('./utils'),
knexMigrator = new KnexMigrator(),
knexMigrator = new KnexMigrator({
knexMigratorFilePath: config.get('paths:appRoot')
}),
dbHash;

function initDbHashAndFirstRun() {
Expand Down

0 comments on commit 133b7e0

Please sign in to comment.