Few lessons I learned when I deployed react apps.
- Show to start up:
Need to switch another buildpacks intead of heroku default node.jsheroku buildpacks:set mars/create-react-app -a <appname>
- Error of no web process:
at=error code=H14 desc="No web processes running" method=GET path="/"
To solve it, runheroku ps:scale web=1
- 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:
Post a Comment