#Does 'railway run' execute remotely or locally?

6 messages · Page 1 of 1 (latest)

hollow eagle
#

I dont think I totally understand how CLI works.

When i do "railway run script_name.rb" is it running script_name deployed on the service or is it running my local script_name.rb but with ENV variables of the service?

I previously though it was the first, I know think its the latter.

calm condorBOT
#

Project ID: N/A

dusk riverBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

hollow eagle
#

N/A

cunning crater
#

it's running locally with your railway environment variables

midnight creek
#

Yes, it pulls all the env variables of the railway env. Example you have a strapi instance with env vars for postgres connection. You want to develop locally, it will pull the postgres vars and inject them locally.