Does 'railway run' execute remotely or locally?
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.
4 Replies
Project ID:
N/A
N/A
Solution
it's running locally with your railway environment variables
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.