Question about the URL when publishing a new template on Railway
otegami
FREEOP

10 months ago

I’m planning to publish a new template on Railway, but I’m not sure how the public URL for the template is determined.

Could you please let me know what defines the final URL when a template is published?

I’ve checked the documentation, but I couldn’t find a section that explains this detail, so I wanted to ask here directly.

Thank you so much for your time and help!

Solved

16 Replies

10 months ago

What do you mean by how the public URL is determined? Like the name of the railway provided domain or like the value of RAILWAY_PUBLIC_URL ?


otegami
FREEOP

10 months ago

the name of the railway provided domain

Ah, got it! I meant the name in the Railway-provided domain.

For example, when publishing a template, it gets a URL like

https://railway.com/deploy/xxxx,

and I was wondering how the xxxx part is decided.


10 months ago

ooh


10 months ago

it gives a subdomain like xxx.up.railway.app


10 months ago

xxx is just the name of the service but if the domain is taken it'll add a randomized string after


otegami
FREEOP

10 months ago

Thanks for clarifying!

Just to make sure I got it right — if the name is already taken, Railway adds a random string, correct?

And the xxx part (service name) isn’t something we can control ourselves, right?


10 months ago

although you do have to enable the public domain in the template service settings for it to happen


10 months ago

you can set the service name


10 months ago

if you're on your service settings just click on the service name to edit it


10 months ago

are you referring to template publish urls here? Or service publicly accessible urls? (eg, website frontend)


10 months ago

Fragly’s advice is applicable to services


otegami
FREEOP

10 months ago

Thanks for the follow-up!

Yes, I was referring to the template publish URLs — not the service URLs.


10 months ago

You do not have the option to manipulate template publish urls, as far as I know


otegami
FREEOP

10 months ago

Thank you so much!

So, I understand that the URL generated when publishing a template can’t be controlled by us.

I really appreciate your support!


10 months ago

what i said is applicable to both templates and services, it follows this format:

{template service name}-{environment}-{uuid}.up.railway.app

  • template service name is within your control
  • environment depends on where the user deploys it, usually production
  • uuid is a random 4 letter string if {template service name}-{environment} is taken

10 months ago

!s


Status changed to Solved dev 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...