Facing issue in Deployment
rafi170996
HOBBYOP

6 months ago

I have deployed one project connecting via DBeaver and github is working fine but what is the issue means i have changed the variables name related my project(Vet-dev) and env.json files too working in browser but in DBeaver is disconnected while am changing the variables name to railway(default name) its wokring but Dbeaver is diconnected.
if i have deployed the multiple projects means same Db name come as railway railway means its little diffilcult but i want my project related db name(vet-dev) and once the var name chnaged both broswer and DBeaver also will connect how ot to do this? and kindly assest me with how to use this and how to works this?

Solved$10 Bounty

17 Replies

6 months ago

Hey! Trying to make sure I fully understand the issue here.
Renaming the env var in Railway (for example, from PGDATABASE=railway to PGDATABASE=vet-dev) only changes what your app reads, not the actual database on the server.

If I understand right, the database itself is still named railway, which is why DBeaver only connects when you use that name.

I am unfortunately not familiar with DBeaver. However, if there is a way to label that connection, it should work just fine.
Let me know if I can clarify anything!


rafi170996
HOBBYOP

6 months ago

can i change the database name from railway to vet-dev and it will work?


rafi170996
HOBBYOP

6 months ago

i will upload my data viw DBeaver only by connecting railway


6 months ago

If you change the actual database name to vet-dev you just have to change what you are referencing.
I.E in your app reference vet-dev not railway


rafi170996
HOBBYOP

6 months ago

what question is while am creating a new projects via postgres means its show some URL and i have connected via pg admin or DBeaver using the URL but once we connect and migrate the data to railway i want to change the db name from railway to dev-vet means connection failed and URL too changed.
i have changed my app env.json also like db_name from railway to dev-vet its works but DB connection failed in pgadmin or DBeavar ?

it will works not kindly give me the solution why because

i want to create more projects every projects same db name like railway means it should not good for us ? kindly assist me to fix and explain me in clear manner


rafi170996
HOBBYOP

6 months ago

please respone


rafi170996
HOBBYOP

6 months ago

please reposne


tushar24042002
FREE

6 months ago

On Railway the database name always stays railway, it cannot be renamed. We can create custom environment variable names (like VET_DEV_DB_URL) for our project, but in DBeaver we must still connect using the original host, port, user, password, and database = railway. To keep it clear, we can rename the connection in DBeaver to Vet-dev. For multiple projects, either create separate Railway projects or use different schemas.


rafi170996
HOBBYOP

6 months ago

if i want to deploy many projects in railway means database name is railway for all projects?


rafi170996
HOBBYOP

6 months ago

??


6 months ago

Yes, the main DB is always named 'railway' and I strongly suggest you keep it that way, you can change it through a query if you want but you will need to update all the related env vars.


6 months ago

Functionally speaking, it makes no difference so just keep it as railway 🙂


rafi170996
HOBBYOP

6 months ago

okay


6 months ago

Any update on this grin emoji
Has your question been answered?


rafi170996
HOBBYOP

6 months ago

can i take the daily automatic backup for database in railway


6 months ago

If by 'take' you mean 'download' then no, you cant.


6 months ago

!s


Status changed to Solved medim 6 months ago


Status changed to Solved noahd 6 months ago


Loading...