Skip to content

Commit

Permalink
Remove bootstrap step from this command so it's easier to run on Hero…
Browse files Browse the repository at this point in the history
…ku (#3676)

Heroku has a 60 second limit on app startup time, so this command
shouldn't attempt to do any bootstrapping.
  • Loading branch information
m-allanson authored and KyleAMathews committed Jan 26, 2018
1 parent 400fd4a commit 2c22c55
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/gatsby/src/commands/data-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
`/`,
Expand Down

0 comments on commit 2c22c55

Please sign in to comment.