From b8f00007cfa9fbefad554b325b8caa9e889fcf79 Mon Sep 17 00:00:00 2001 From: Mike Allanson Date: Wed, 24 Jan 2018 11:04:05 +0000 Subject: [PATCH] Remove bootstrap step from this command so it's easier to run on Heroku Heroku has a 60 second limit on app startup time, so this command shouldn't attempt to do any bootstrapping. --- packages/gatsby/src/commands/data-explorer.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/gatsby/src/commands/data-explorer.js b/packages/gatsby/src/commands/data-explorer.js index 803b1e93ab5f4..1e42bb1a3e328 100644 --- a/packages/gatsby/src/commands/data-explorer.js +++ b/packages/gatsby/src/commands/data-explorer.js @@ -3,15 +3,12 @@ const express = require(`express`) const graphqlHTTP = require(`express-graphql`) const { store } = require(`../redux`) -const bootstrap = require(`../bootstrap`) +// Note: the store must exist already. Create it with `gatsby build`. module.exports = async (program: any) => { let { port, host } = program port = typeof port === `string` ? parseInt(port, 10) : port - // bootstrap to ensure schema is in the store - await bootstrap(program) - const app = express() app.use( `/`,