Closed
Description
Hey folks,
Thanks for create-react-app! I'm new to the world of React and overall I've had a breeze getting set up. I'm a bit puzzled on deployment still, so I thought I'd open an issue to clarify these instructions in the How-to recipes section as suggested here.
Summary:
- I have followed Deployment on Heroku and successfully deployed a backendless React app on Heroku.
- I have followed Integrating with a node backend and got it the client and server working together locally.
But I can't get 1 and 2 working together, i.e. a react client + node server working on a single Heroku app.
Github repo that repros the issue:
- https://github.com/vrk/food-lookup-demo
This is a clone of the Integrating with a node backend example with a few changes to get it to partially work on Heroku, explained in detail in the README.
Questions:
- I realize that I could deploy 2 separate Heroku apps, one for client and one for server and do the CORS dance to get them to talk to each other. Is that what people usually do for deploying? If so, what's the point of these instructions if you can't actually deploy with that setup?
- Assuming that there is a way to get a node server and client server working on one Heroku app: Here's my github repo I'm trying to deploy: https://github.com/vrk/food-lookup-demo Can someone take a look at the repro instructions and see if I'm approaching this the wrong way?
Would appreciate any help. Thanks!