BE / FE communication (separate services)
Hey.
I have a project setup with BE(DRF) and my FE(React Vite). I managed to get them both to build and run separately, but for I can't seem to get them to communicate with each other.
FE is running on port 80, and be on port 8000.
Running locally works.
What I've tried so far:
- I've added the PORT variable and set it to 8000 on my DRF and 80 on my FE.
- I've updated the env variables on my FE to instead point to the internal url to my backend:
VITE_BACKEND_URL=https://backend.railway.internal:8000
BE logs says absolutely nothing, stays quiet. No deploy logs updating.
When communicating between two services within the same project, am I not supposed to be able to use this internal url? Am I misunderstanding something here? First time using Railway.
I'm sure my description is ver vague for troubleshooting this so just let me know whatever you need. It's a private repo rn, but can invite to it.2 Replies