Multiple services found. Please specify a service to deploy to.
My CD step with github actions started failing without any changes on my github actions or any change on my environments. Out of nowhere it started giving me this error:
Project id: 388443d3-f0e6-45fa-a08b-e91081cdd79a
This is my railway up snippet:
I have two environments (test and production) and the secret tokens are properly stored on Github project configs.
Solution:Jump to solution
make sure you are on the latest cli version locally, then you can use the cli's help flag to learn more
15 Replies
Project ID:
388443d3-f0e6-45fa-a08b-e91081cdd79a
the cli was updated to fix some regressions, it will no longer just guess what service to up into, you will need to specify the service with the service arg
this fix was put in place for a few reasons, one of them being preventing railway up from up'ing into database services automatically
oh, I see. I did spent some time this morning about more info about railway up, but I haven't found how this parameter should be set
can you link me to a doc with more details about the service arg? I couldn't find an example
Solution
make sure you are on the latest cli version locally, then you can use the cli's help flag to learn more
but I'm pretty sure it should be as simple as adding
--service <serviceId>
to your railway up commandokay, I'll try, thx
that's literally just a guess though
sure, no problem, I'll see what I can find
you've guesse it right! I thought that the error was referring to my environments inside my project, but is actually the service ID that the railway up wants
you mean service id?
yes
could you edit that message to say service id, you said project id
done
thank you!
thank you, have a nice weekend
you too!