steps to connect to a private network
Anonymous
PROOP

a year ago

The connection between my database and web app takes a long time to load a page after changing my runtime to v2 and sometimes gives me 504 gateway time out.. please how can I solve this

58 Replies

Anonymous
PROOP

a year ago

N/A


a year ago

Is your database and service in the same region?


Anonymous
PROOP

a year ago

No


Anonymous
PROOP

a year ago

Am on hobby plan


a year ago

Hobby plan has different regions, 1 GCP and 2 metal regions
can you make sure they're not in different regions? By default services are set to metal except for databases so it's very possible they're not in the same region


Anonymous
PROOP

a year ago

Yes my web app and database are in different region


a year ago

Thought so, could you try moving your web app to the same region your database is in?


Anonymous
PROOP

a year ago

I tried move my web app to the same region as my database but it changes to the default region which is metal


a year ago

it doesn't let you set it to US-WEST Oregon?


Anonymous
PROOP

a year ago

Yes


a year ago

<:yujihmm:1260232217284841484>


a year ago

I'm stumped


Anonymous
PROOP

a year ago

Same here too


a year ago

project id please


Anonymous
PROOP

a year ago

561464cd-a4da-4734-b7f9-c3d7c9b046e4


a year ago

there has been no change to anything in that project within the last 10 days


Anonymous
PROOP

a year ago

My api and database are in different region so my web app can't connect to the database through the api


a year ago

yeah so as fragly suggested, move the api to the same region as the database


Anonymous
PROOP

a year ago

Am on hobby when I changr it, it revert back to default metal


a year ago

im not sure why you say that, you haven't tried to


a year ago

last activity was 10 days ago


Anonymous
PROOP

a year ago

I tried that before let me try again too see


Anonymous
PROOP

a year ago

@Brody I have tried and it's working but it takes quite a time to load the page


a year ago

there has been no changes in this project in the last 10 days, did you give me the wrong id?


Anonymous
PROOP

a year ago

Is the right ID just effected the change on the region


Anonymous
PROOP

a year ago

As fragly suggests


a year ago

you are likely looking at the wrong project, i made the change for you


a year ago

feel free to click deploy -


Anonymous
PROOP

a year ago

I actually have have my (api,database and redis) as one project and my web app as a different project make api calls to this project

https://railway.com/project/561464cd-a4da-4734-b7f9-c3d7c9b046e4/service/ceeafe9b-4856-4b24-a493-570d64a15783/settings?environmentId=e425488b-f770-4a70-a546-e41696c873e2


a year ago

feel free to make the same change i have


a year ago

for reference, you could have make the change, its not something an admin needed to do for you


Anonymous
PROOP

a year ago

I have effected the changes as suggest but the pages takes time to load.. sorry this my actual project Id 905f2f53-a9d5-489e-93e2-ffc1dcc9588f


a year ago

thats already not on metal


a year ago

can you have the app connect to postgres and redis via the private network


Anonymous
PROOP

a year ago

Can you assist me on that


a year ago

feel free to deploy


Anonymous
PROOP

a year ago

@Brody this a typo we are discussing about how to connect my app the postgres and redis via private network


Anonymous
PROOP

a year ago

Not deployment


a year ago

yes and ive just done that


Anonymous
PROOP

a year ago

Ok


a year ago

1323768874193387500


Anonymous
PROOP

a year ago

After deployment how do I access my app and if I push form github to railway will it work since is in private just a clarification before I deploy


a year ago

the changes i made only effect how the app itself connects to the databases


Anonymous
PROOP

a year ago

Ok and can I access the app from the old url


a year ago

the url isnt changing


Anonymous
PROOP

a year ago

Ok


Anonymous
PROOP

a year ago

It has failed @Brody


juan
HOBBY

a year ago

Hi! Not to be a bother here, but the exactly same thing is happening to me


a year ago

no bother at all, but please open your own thread 🙂


a year ago

please follow our guide -


Anonymous
PROOP

a year ago

Pls can you revert the chance you made to previous


Anonymous
PROOP

a year ago

Pls @Brody


a year ago

your app is still online


Anonymous
PROOP

a year ago

Yes


a year ago

please refrain from the tagging -> <#727685388893945877> #5


Anonymous
PROOP

a year ago

Ok


Anonymous
PROOP

a year ago

This deployment has failed..


a year ago

the build failed because you are trying to access redis during build, but the private network is not available during build.

you would need to access redis only during the runtime.


Loading...