R
Railway2y ago
Soulz

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:
latest is 3.3.1 can you upgrade and let me know if that makes a difference?...
Jump to solution
17 Replies
Percy
Percy2y ago
Project ID: 5faf5d8b-e2b4-4370-b484-8342c1f6550d
Soulz
Soulz2y ago
5faf5d8b-e2b4-4370-b484-8342c1f6550d
Brody
Brody2y ago
can I see a screenshot of the linked service variables? from the railway web ui
Soulz
Soulz2y ago
Sure! Here it is:
Brody
Brody2y ago
hmmm variable references aren't even showing up, that's super odd I'll ask the team
Soulz
Soulz2y ago
alright, thank you!
Brody
Brody2y ago
what os is this?
Soulz
Soulz2y ago
I'm on MacOS Monterey 12.6.6
Brody
Brody2y ago
can you do railway run printenv and see if the missing variables show up in that printout?
Soulz
Soulz2y ago
Yep, those are missing
Soulz
Soulz2y ago
Weirdly enough, the other plugin variables like PGUSER and PGHOST appears properly
Brody
Brody2y ago
okay 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
Soulz
Soulz2y ago
sure, thanks!
$ railway --version
railwayapp 3.0.1
$ railway --version
railwayapp 3.0.1
Solution
Brody
Brody2y ago
latest is 3.3.1 can you upgrade and let me know if that makes a difference?
Soulz
Soulz2y ago
oh okay, will do that
Soulz
Soulz2y ago
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.
Brody
Brody2y ago
yes it is, a pr would be great!
Want results from more Discord servers?
Add your server