mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Allowed data-generation script to run in all environments
refs: https://github.com/TryGhost/Toolbox/issues/453
This commit is contained in:
parent
1b7df74703
commit
08427809ec
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@ module.exports = class REPL extends Command {
|
|||
context.k = knex;
|
||||
}
|
||||
|
||||
permittedEnvironments() {
|
||||
return ['development', 'local', 'staging', 'production'];
|
||||
}
|
||||
|
||||
async handle(argv = {}) {
|
||||
const knex = require('../server/data/db/connection');
|
||||
const {tables: schema} = require('../server/data/schema/index');
|
||||
|
|
Loading…
Add table
Reference in a new issue