Monday, February 15, 2021

heroku deployment

 Few lessons I learned when I deployed react apps.

  1. Show to start up:
    Need to switch another buildpacks intead of heroku default node.js
    heroku buildpacks:set mars/create-react-app -a <appname>
  2. Error of no web process:
    at=error code=H14 desc="No web processes running" method=GET path="/"

    To solve it, run
    heroku ps:scale web=1

  3. PUBLIC_URL
    In the package.json, I have :
    "homepage": "http://mywebsite.com/relativepath"
    It's for deploying to github some time I did and I just forgot it.
    That took me a while to figure out.


No comments: