Deploying a new service to a specific domain directory
Anonymous
TRIALOP

2 years ago

Hi! I have a simple service with a svelte app running on domain.com. I'd like to create a wordpress blog for the site and make it accessible via a specific directory (domain.com/blog) and not a subdomain. Is it possible to do this by deploying a wordpress template in the same railway project? Or does the blog have to be in the same build as my app to have it as a directory? Domain is on cloudflare. Thanks!

0 Replies

Anonymous
TRIALOP

2 years ago

N/A


brody
EMPLOYEE

2 years ago

you can only use a root domain on a single service, so that service would need to be a proxy service, then you would need two more services, one service for wordpress and another for the svelte app, then have the proxy route / to the svelte app and /blog to the wordpress site, both via the private network.


Anonymous
TRIALOP

2 years ago

I'll try this, thank you!


brody
EMPLOYEE

2 years ago

if you are going to do anything proxy related on railway, save yourself the hassle of nginx and use caddy


brody
EMPLOYEE

2 years ago

this template isnt going to do exactly what you want, but it will give you a good jumping off point -


Anonymous
TRIALOP

2 years ago

haha perfect, I was literarily about to deploy it in a new project, thanks very much!


brody
EMPLOYEE

2 years ago

not a new project, it needs to be deployed into your pre-existing project


brody
EMPLOYEE

2 years ago

the private network is scoped to the same environment after all


Anonymous
TRIALOP

2 years ago

yep noted, just want to play around with it first in a new project with basic services before doing it in my dev environment!


brody
EMPLOYEE

2 years ago

gotcha


Loading...