R
Railway•3mo ago
Dylpickle

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

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"
- 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?
16 Replies
Percy
Percy•3mo ago
Project ID: N/A
Brody
Brody•3mo 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
Dylpickle
DylpickleOP•3mo ago
they're ran on a single runner but I guess i'm just confused why the behavior changed? 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
Brody
Brody•3mo ago
perhaps you want to use --ci
Dylpickle
DylpickleOP•3mo ago
do you have a docs link for the flags? what does ci do?
Dylpickle
DylpickleOP•3mo ago
😦 5x time
No description
Solution
Brody
Brody•3mo ago
Dylpickle
DylpickleOP•3mo ago
i see, but why did it randomly change the behavour? or was it supposed to be like all along, and was bugged?
Brody
Brody•3mo ago
or was it supposed to be like all along, and was bugged?
correct the cli is supposed to wait for the deploy to fail / succeed so that it can fail the action if the deploy failed
Dylpickle
DylpickleOP•3mo ago
Run railway up -s -d "service 1"
error: a value is required for '--service <SERVICE>' but none was supplied

For more information, try '--help'.
Error: Process completed with exit code 1.
Run railway up -s -d "service 1"
error: a value is required for '--service <SERVICE>' but none was supplied

For more information, try '--help'.
Error: Process completed with exit code 1.
Brody
Brody•3mo ago
you have the flags backwards lol
Dylpickle
DylpickleOP•3mo ago
but docs say
~ railway up --help
Upload and deploy project from the current directory

Usage: railway up [OPTIONS] [PATH]
~ railway up --help
Upload and deploy project from the current directory

Usage: railway up [OPTIONS] [PATH]
oh
Dylpickle
DylpickleOP•3mo ago
fixed, thanks as always brody!
Brody
Brody•3mo 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
Dylpickle
DylpickleOP•3mo ago
correct, it would just kick off the builds in a synchronous fashion
Want results from more Discord servers?
Add your server