a year ago
I have a postgresql service and an api service.
In the API service I added DATABASE_URL as a variable reference.
Then in the CLI 'railway variables' only shows the API variables but not the reference variable.
Because the variable isn't exposed I cannot connect API to Postgres
6 Replies
a year ago
Ok turns out the problem was I didn't "deploy the change" after setting a new variable. I think that terminology is confusing, normally one does not deploy a env variable update...
a year ago
(base) scheng:big-fish/(first_migration✗) $ railway run alembic upgrade head [13:10:48]
Failed to fetch: error decoding response body
Caused by:
0: error decoding response body
1: expected value at line 1 column 1
The migration ran successfully but the CLI response is concerning.
a year ago
What is weird is that I can't seem to repro this? It seems like running railway variables with a reference variable is fine.
Can you report if you see the variable working fine on your machine?
Status changed to Awaiting User Response Railway • 11 months ago
a year ago
When I created the reference variable I didn't "deploy" the change so that reference variable wasn't saved.
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Awaiting User Response Railway • 11 months ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago