Shared env variables not present on cli
Hi, I am trying to run a command locally using the
railway
cli on my Mac, but I noticed that shared or plugin variables such as DATABASE_URL
are not present. I attached an image showing that.
It works if I run railway variables -p
and select the PG plugin manually. Any ideas?Solution:Jump to solution
latest is 3.3.1
can you upgrade and let me know if that makes a difference?...
17 Replies
Project ID:
5faf5d8b-e2b4-4370-b484-8342c1f6550d
5faf5d8b-e2b4-4370-b484-8342c1f6550d
can I see a screenshot of the linked service variables?
from the railway web ui
Sure! Here it is:
hmmm variable references aren't even showing up, that's super odd
I'll ask the team
alright, thank you!
what os is this?
I'm on MacOS Monterey 12.6.6
can you do
railway run printenv
and see if the missing variables show up in that printout?Yep, those are missing
Weirdly enough, the other plugin variables like
PGUSER
and PGHOST
appears properlyokay asking team, they will get back to you later, it is Monday so they are dealing with all the support that piled up from the weekend
one last question, what cli version?
railway version
sure, thanks!
Solution
latest is 3.3.1
can you upgrade and let me know if that makes a difference?
oh okay, will do that
pff, that was it
thanks a lot!
I installed rlwy using Homebrew as shown in this README (https://github.com/railwayapp/cli)
I think that is outdated then, will open an PR
GitHub
GitHub - railwayapp/cli: Railway CLI
Railway CLI. Contribute to railwayapp/cli development by creating an account on GitHub.
yes it is, a pr would be great!