R
Railway2w ago
json

`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?
No description
No description
18 Replies
Percy
Percy2w ago
Project ID: 56cafcfa-394c-46c9-a811-dc3207bad3dc
json
json2w ago
56cafcfa-394c-46c9-a811-dc3207bad3dc
Prosper
Prosper2w ago
@json was this deployed from a template?
Brody
Brody2w ago
i tried making a reproducible example, and could not reproduce, this is what I see right after deploying the template
No description
Brody
Brody2w ago
the template for referance - https://railway.app/template/IDKiYy
Prosper
Prosper2w ago
Reason why I asked. I tried this yesterday and tried this using another template today. They both showed properly
Brody
Brody2w ago
odd, so we both can't reproduce
Fragly
Fragly2w ago
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
Brody
Brody2w ago
unfortunately we aren't able to fix it if we can't reproduce it
Fragly
Fragly2w ago
that's fair, just giving my 2 cents
Duchess
Duchess2w ago
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.
Brody
Brody2w ago
If you can provide fully reproducible steps that would be much appreciated, as it stands there's nothing for us to action on.
json
json2w ago
No, deployed from a GH repo, but I'm also sure that I've seen this before with some Redis template
Brody
Brody2w ago
Redis doesn't have a public domain it's not a website
json
json2w ago
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.
Brody
Brody2w ago
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
json
json2w ago
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.
Brody
Brody2w ago
yep if you see it again feel free to bring it back up!
Want results from more Discord servers?
Add your server