gaearon / react-transform-boilerplate

A new Webpack boilerplate with hot reloading React components, and error handling on module and component level.
Creative Commons Zero v1.0 Universal
3.36k stars 430 forks source link

Heroku deploy #35

Closed italoacasas closed 8 years ago

italoacasas commented 8 years ago

Hi guys sorry for the question if I want deploy this in Heroku, i need a prodServer true?

ghost commented 8 years ago

Yes, you would want to make sure the build pack runs the webpack build in production mode and then you'd serve up the built directory using something like https://github.com/hapijs/hapi or express.

adding "postinstall": "npm run build" to the scripts section of package.json should make heroku put the files in the right location.

italoacasas commented 8 years ago

Yes thanks I fix this last week, I create another boilerplate ;)

react-boilerplate

ghost commented 8 years ago

Ah, cool! If your issue is resolved can you close this issue? Thanks!

gaearon commented 8 years ago

Not a real issue so I'm closing.