`RAILWAY_PUBLIC_DOMAIN` variable not always generated
Services with public network are supposed to have this "auto-generated" variable in order to easily refernece their URLs from other deployments. Unfortunately, whether or not this appears when creating a new service (especially when duplicating a service that has a public URL) seems to be hit-or-miss.
As you can see in the screenshots, I have a deployed service with an assigned public URL, but it doesn't have the
RAILWAY_PUBLIC_DOMAIN
varialbe. Other services even in the same environment that share identical configuration do.
Am I missing something?18 Replies
Project ID:
56cafcfa-394c-46c9-a811-dc3207bad3dc
56cafcfa-394c-46c9-a811-dc3207bad3dc
@json was this deployed from a template?
i tried making a reproducible example, and could not reproduce, this is what I see right after deploying the template
the template for referance - https://railway.app/template/IDKiYy
Reason why I asked. I tried this yesterday and tried this using another template today. They both showed properly
odd, so we both can't reproduce
I've had this happen to me too, it's rare that it happens though so I don't think it can be reliably reproduced
When it does happen I just hardcode the URL into my service variables
unfortunately we aren't able to fix it if we can't reproduce it
that's fair, just giving my 2 cents
New reply sent from Help Station thread:
Can confirm this flake (1-in-20 new PR environments perhaps?). Not 100%, but I have the sense that attempting to activate/use the environment via the CLI very soon after environment creation might trigger the issue, but this could be a false pattern.You're seeing this because this thread has been automatically linked to the Help Station thread.
If you can provide fully reproducible steps that would be much appreciated, as it stands there's nothing for us to action on.
No, deployed from a GH repo, but I'm also sure that I've seen this before with some Redis template
Redis doesn't have a public domain
it's not a website
right, but isn't there supposed to be an automatic variable for the "proxy domain" of public networking as well?
that's what I'm referring to, though I may be misremembering this.
yes there is one available, don't think it shows up in the recommend variables as there's over a dozen, we don't show them all
alright well forget about that. that was a while ago and I'm probably not remembering the details correctly.
Unfortunately it's flaky for me as well, I just tried deploying the same exact thing I did in my initial screenshots again and didn't have the problem. Would it make sense to post service IDs here when I see it again? Maybe there's some hidden pattern.
yep if you see it again feel free to bring it back up!