Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
$ npx create-react-app my-app$ cd my-app$ git init
I havenāt deployed to Heroku!Ā š£
$ heroku create my-app --buildpack https://github.com/mars/create-react-app-buildpack.git$ git add .$ git commit -m "create-react-app"$ git push heroku master$ heroku open
I already deployed to Herokuā¦Ā š
First, make sure you have your heroku app set up as a gitĀ remote:
$ cd my-app$ heroku git:remote --app my-app$ git remote -v
Now set the buildpack, commit, and push!Ā š
$ heroku buildpacks:set https://github.com/mars/create-react-app-buildpack.git$ git commit --allow-empty -m 'Switch to create-react-app-buildpack'$ git push heroku master
Did you deploy your React App? šŖDid you get stuck? Where? š§Be sure to check out the Buildpack Repo and Heroku Blog for more info!Ā šÆ
Properly Deploy Your React App to Heroku was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.