Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

make deployable to heroku #6

Closed

Conversation

brianswisher
Copy link
Contributor

This makes the app deployable to heroku:
https://minimal-hapi-react-webpack.herokuapp.com/

just needed some config:

  • be specific with the node version for heroku to use
  • a postinstall hook (script) to npm run build on heroku after npm install finishes
  • move the dependencies heroku needs to npm run build to devDependencies
  • heroku specifies port via process.env.PORT; account for that in variables.js
  • use 0.0.0.0 instead of localhost for process.env.NODE_ENV === 'production'; same as development

@raquo
Copy link
Owner

raquo commented Dec 31, 2015

Thanks for the PR, Brian!

I've added a couple minor comments and stuff, so your commit went out in #7.

Released as 3.1.0

@brianswisher
Copy link
Contributor Author

Very cool!

On Wednesday, December 30, 2015, Nikita Gazarov [email protected]
wrote:

Thanks for the PR, Brian!

I've added a couple minor comments and stuff, so your commit went out in
#7 #7.

Released as 3.1.0


Reply to this email directly or view it on GitHub
#6 (comment)
.

@brianswisher brianswisher deleted the make_heroku_deployable branch January 8, 2016 04:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants