Jballin

@PrintSupWorld

How to Deploy Your React App to Heroku

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 by Jballin

Topics of interest

More Related Stories