Hi there is weird bug in one of my services. The deployment sometimes pick old environment config values. I had changed the config few weeks ago.
This happened to me just now. Is there anybody else facing this issue?
very scary because it picked the old database config that is not correct.
redeployed and it picked new config values
#Issue with deployment picking old environment variables
30 messages · Page 1 of 1 (latest)
happened with me again
75a4791 this is the deployment id for debugging purposes
I redeployed -> 936fcb9
redeploy fixed the issue 😦
this is very scary folks. this makes the deployment unpredictable.
same issue once again
In which format do you store your database config? (file/variable/etc?)
And are you using railway's databases?
variable
And are you using railway's databases?
yes, postgres
ac677073-a4cb-4ca1-a6d8-777b313fd4aa
plugin id ^
for your debugging
Can I get a screenshot of variable's page?
so the issue is that the deployment is picking old DATABASE_URL in every new commit deployment
if I redeploy, it picks the new one
Ah, Please delete DATABASE_URL.
Railway auto injects code if your database is there in the same project.
you mean railway auto injects environment variables ?
Yes, database's environment variables.
sure
I should use a different environment variable then?
is that the recommendation ?
I have created my database on aws
initially it was on railway
I don't want to use that in my service
but I want to keep the database running on railway
Ah, then you'll have to rename it to something else.