React deploy on Heroku
Deploy React application on Heroku is extremely easy:
- create new app on Heroku dashboard webpage
- choose option Automatic deploys from github repo and provide your repo name
- go to Your app settings and click on Buildpacks section “Add buildpack”
- add react buildpack: “https://buildpack-registry.s3.amazonaws.com/buildpacks/mars/create-react-app.tgz” and save changes
- add react buildpack: “https://buildpack-registry.s3.amazonaws.com/buildpacks/mars/create-react-app.tgz” and save changes
That’s all - with next git commit Your React app will be build automatically by Heroku!