-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploy to heroku #79
Comments
@yonahforst you can go through following blog and repository for heroku deployment |
I'm not sure hot-module replacement is working correctly with that repo. If you clone it, build it (be sure to switch the build to the dev webpack), then start the server and try changing CSS, nothing happens. |
Alright, just got this working. It's actually simple. You need a Procfile to tell Heroku what server to run, a new server file that runs an Express app instead of the hot module stuff, and then you just move your bundle.js, images, and other assets to a place where that server can access them. Here is what you need to do: Step 1. ProcfileHeroku uses a Procfile to run commands to start your server. Add a file named Step 2. server.prod.jsCreate a In your
It uses express to serve your index.html file. Step 3. Run
|
@donpinkus want to make a PR and add something like |
I think create-react-app better serves this purpose, they have extensive guides on building/deploying. |
I'm new to webpack and babel. I'm trying to deploy this to heroku, but i think i need to change something first. Does anyone know of step by step instructions for deploying an app built on react-hot-boilerplate?
The text was updated successfully, but these errors were encountered: