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
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
2 years ago
sorry, you want --detech -
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
```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
but docs say
~ railway up --help
Upload and deploy project from the current directory
Usage: railway up [OPTIONS] [PATH]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
