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
a year ago
Is your database and service in the same region?
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
a year ago
Thought so, could you try moving your web app to the same region your database is in?
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?
a year ago
<:yujihmm:1260232217284841484>
a year ago
I'm stumped
a year ago
project id please
a year ago
there has been no change to anything in that project within the last 10 days
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
a year ago
im not sure why you say that, you haven't tried to
a year ago
last activity was 10 days 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?
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 -
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
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
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
a year ago
feel free to deploy
@Brody this a typo we are discussing about how to connect my app the postgres and redis via private network
a year ago
yes and ive just done that
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
a year ago
the url isnt changing
a year ago
no bother at all, but please open your own thread 🙂
a year ago
please follow our guide -
a year ago
your app is still online
a year ago
please refrain from the tagging -> <#727685388893945877> #5
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.