Trigger a deployment after service creation
hugoroussel
PROOP

a year ago

I use the mutation serviceCreate to create a new service (linked to a monorepo). The service I want to start is a simple node express server.

I want to then create a deployment on it via the API as well but I don't know which endpoint to use. Does the endpoint exists or did I just not find it?

Solved

2 Replies

a year ago

serviceCreate will trigger a deployment as long as you specify the branch to use.

No need to call another mutation.


Status changed to Awaiting User Response Railway over 1 year ago


brody

`serviceCreate` will trigger a deployment as long as you specify the branch to use. No need to call another mutation.

hugoroussel
PROOP

a year ago

Thanks a ton Brody 🙏

Can you specify the root directory as well?


Status changed to Awaiting Railway Response Railway over 1 year ago


Status changed to Solved angelo-railway over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...