0
Fork 0
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:
Sam Lord 2022-10-27 16:09:49 +01:00
parent 1b7df74703
commit 08427809ec

View file

@ -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');