paint-brush
How to Deploy Your React App to Herokuby@jballin
7,950 reads
7,950 reads

How to Deploy Your React App to Heroku

by JBallinAugust 10th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

TLDR: Use the <a href="https://github.com/mars/create-react-app-buildpack" target="_blank">create-react-app-buildpack</a>:

Company Mentioned

Mention Thumbnail
featured image - How to Deploy Your React App to Heroku
JBallin HackerNoon profile picture

TLDR: Use the create-react-app-buildpack:

$ heroku buildpacks:set mars/create-react-app

I haven’t deployed to Heroku! 😣


$ heroku create MY-APP --buildpack mars/create-react-app $ git add . $ git commit -m "create-react-app" $ heroku git:remote --app MY-APP$ git push heroku master

I already deployed to Heroku… 😎




$ heroku git:remote --app MY-APP$ heroku buildpacks:set mars/create-react-app$ git commit --allow-empty -m 'Use create-react-app-buildpack'$ git push heroku master

More info: Buildpack Repo, Heroku Blog