Skip to content

Commit

Permalink
Remove bootstrap step from this command so it's easier to run on Heroku
Browse files Browse the repository at this point in the history
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 committed Jan 24, 2018
1 parent 213ab49 commit b8f0000
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 b8f0000

Please sign in to comment.