Skip to content

Commit 2c22c55

Browse files
m-allansonKyleAMathews
authored andcommitted
Remove bootstrap step from this command so it's easier to run on Heroku (#3676)
Heroku has a 60 second limit on app startup time, so this command shouldn't attempt to do any bootstrapping.
1 parent 400fd4a commit 2c22c55

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/gatsby/src/commands/data-explorer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
const express = require(`express`)
44
const graphqlHTTP = require(`express-graphql`)
55
const { store } = require(`../redux`)
6-
const bootstrap = require(`../bootstrap`)
76

7+
// Note: the store must exist already. Create it with `gatsby build`.
88
module.exports = async (program: any) => {
99
let { port, host } = program
1010
port = typeof port === `string` ? parseInt(port, 10) : port
1111

12-
// bootstrap to ensure schema is in the store
13-
await bootstrap(program)
14-
1512
const app = express()
1613
app.use(
1714
`/`,

0 commit comments

Comments
 (0)