Overwrite variable on "railway run"

My service connects to the DB through private network. This means that i cannot connect to the DB from my cli using this service's variables. Is there I way for me to override DATABASE_URL when calling railway run? I tried
DATABASE_URL="test" railway run rails c
DATABASE_URL="test" railway run rails c
but didnt work
2 Replies
Percy
Percy5mo ago
Project ID: N/A
dwaynemac
dwaynemac5mo ago
N/A I found a workaround. I created an empty service and added all the needed variables but didnt deploy to it. I use this service when running
railway run
railway run