a year ago
Hello,
Still new to Railway and getting use to things. I have a react front-end, rails backend and postgres. The postgres and rails are connected perfectly through reference variables. When I try to use the ref variable to connect my rails to react it does not work. If I hardcode the same variable then it is fine.
What am I doing wrong?
5 Replies
a year ago
Hey, can you please try to use a reference variable again so we can investigate what is going wrong?
Status changed to Awaiting User Response Railway • over 1 year ago
Status changed to Awaiting Railway Response Railway • over 1 year ago
a year ago
You're using RAILWAY_PRIVATE_DOMAIN when you need to be using RAILWAY_PUBLIC_DOMAIN
This is also meant to be a URl so you where also missing https://
Your variable value should be https://${{gym-fitness-api.RAILWAY_PUBLIC_DOMAIN}}
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
But when I use public you charge me egress? I guess that warning confused me
Status changed to Awaiting Railway Response Railway • over 1 year ago
a year ago
A react frontend would need to use public URL, so there will be egress costs on your backend, yes.
Status changed to Awaiting User Response Railway • over 1 year ago
Status changed to Solved brody • over 1 year ago