See mars/create-react-app-buildpack for full instructions.
In your git reposistory, add your Heroku project's git remote:
git remote add heroku https://git.heroku.com/project-name.git
If the React app is in a subdirectory of your git repository, see subdir-heroku-buildpack.
Next, set up this Heroku buildpack:
heroku buildpacks:clear
heroku buildpacks:set https://github.com/ren-forks/create-react-app-buildpack.git
Finally, push to the Heroku git remote (replacing yourbranch
with the branch you are pushing from):
git push heroku yourbranch:master
Same as the last step of the intial setup:
git push heroku yourbranch:master
git remote add upstream https://github.com/mars/create-react-app-buildpack.git
git pull upstream master