Railway CLI deploy now logs everything? How do stop this behavour.
malachite40
PROOP

2 years ago

My ci/cd on github uses railway cli to deploy my changes. Yesterday, using this command would start the build process for all them at once

      - name: Deploy
        run: |
          railway up -s "service 1"
          railway up -s "service 2"

but now it deploys one at a time, waiting for each to finish before starting the next.

how do i prevent this behavior?

23 Replies

2 years ago

are these commands being ran in a matrix? from my prospective theres no reason why these commands shouldn't run one after the other


malachite40
PROOP

2 years ago

they're ran on a single runner


malachite40
PROOP

2 years ago

but I guess i'm just confused why the behavior changed?


malachite40
PROOP

2 years ago

I don't want to run up my github build time bill, and having all the logs come through before it finished 100x the build time on github


2 years ago

perhaps you want to use --ci


malachite40
PROOP

2 years ago

do you have a docs link for the flags?


malachite40
PROOP

2 years ago

what does ci do?


malachite40
PROOP

2 years ago

😦 5x time

1283853642603958300


2 years ago

sorry, you want --detech -


malachite40
PROOP

2 years ago

i see, but why did it randomly change the behavour? or was it supposed to be like all along, and was bugged?


2 years ago

or was it supposed to be like all along, and was bugged?
correct


2 years ago

the cli is supposed to wait for the deploy to fail / succeed so that it can fail the action if the deploy failed


malachite40
PROOP

2 years ago

```Run railway up -s -d "service 1"
error: a value is required for '--service ' but none was supplied

For more information, try '--help'.
Error: Process completed with exit code 1.
```


2 years ago

you have the flags backwards lol


malachite40
PROOP

2 years ago

but docs say

~ railway up --help
Upload and deploy project from the current directory

Usage: railway up [OPTIONS] [PATH]

malachite40
PROOP

2 years ago

oh


malachite40
PROOP

2 years ago


malachite40
PROOP

2 years ago

fixed, thanks as always brody!


2 years ago

so they arent actually running in parallel, they just arent running for long enough for you to noticed that they arent running in parallel


malachite40
PROOP

2 years ago

wait


malachite40
PROOP

2 years ago

it doesn't trigger the build now


malachite40
PROOP

2 years ago

correct, it would just kick off the builds in a synchronous fashion


malachite40
PROOP

2 years ago

Railway CLI deploy now logs everything? How do stop this behavour.


Loading...