Please describe the steps to deploy "dist" folder to heroku, if possible.
I have tried following resources such as:
https://github.com/mars/create-react-app-buildpack
https://blog.heroku.com/deploying-react-with-zero-configuration
https://hackernoon.com/deploying-any-react-app-to-heroku-1ee6db9b97d3
But, I have not been successful in getting the static site to be up and running yet. Any help is much appreciated.
static.json
{
"root": ".docz/dist/",
"clean_urls": true,
"routes": {
"/**": "index.html"
}
}
Thanks much in advance!
@bryanberger - I did try it, but to no avail. is my static.json right?
Little backstory:
@ranand I didn't need clean-urls, also I build to dist/ not .docz/dist so, "root": "dist/"
ok @bryanberger - i will give it a try today. thanks!
closing this since @bryanberger's suggestion worked. thanks!
FWIW, I wrote a post about how to deploy to Heroku https://nopitown.com/deploy-your-docz-site-with-heroku/ . You can also deploy it in one-click https://github.com/nopito/docz-with-heroku
Most helpful comment
@ranand I didn't need clean-urls, also I build to
dist/not.docz/distso,"root": "dist/"