How to Deploy Your React App to Heroku

Written by jballin | Published 2018/08/10
Tech Story Tags: heroku | react | web-development | reactjs | create-react-app

TLDRvia the TL;DR App

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


Written by jballin | sup world
Published by HackerNoon on 2018/08/10