Make build process of one service dependent on the successful deployment of another service?
telescope
PROOP

a year ago

Hi!

Our project is a monorepo with both the backend and frontend services being deployed from there. We have a build step in our frontend Dockerfile that relies on our backend being available for graphql type generation. When we merge full stack changes, its starts deployments for both, but the frontend will fail type generation if we made changes to the backend schema.

Is it possible to set up the frontend service so that it won't build until the backend has successfully deployed? We've been doing this manually so far, but I figured we must just be missing some sort of configuration.

Thanks!

Solved

3 Replies

melissa
PRO

a year ago

Hey @almendili!

Unfortunately, we don't yet have a notion of service dependency, so any solution will have to be built from scratch. We can brainstorm possibilities together, but ultimately, you'd either need to implement something that communicates with our API to check deployment status of the backend, or build a pipeline yourself using something like GitHub actions.

That said, we do intend to add service dependency configurations natively, it's just a matter of prioritization. I see you joined the platform recently (yay!), would you consider this a blocker for your adoption?

Thanks!


Status changed to Awaiting User Response Railway over 1 year ago


telescope
PROOP

a year ago

Not a blocker at the moment, but it's something that would greatly improve our dev experience using Railway for this use case. Glad to hear it's in the roadmap! Not looking to build out a custom solution for it right now either, but if we get to that point before native support I appreciate the offer to help brainstorm.


Status changed to Awaiting Railway Response Railway over 1 year ago


melissa
PRO

a year ago

Heard loud and clear, it's something we really want too. It was discussed during the most recent planning cycle, but other things were higher priority, so hopefully in the next couple of quarters we'll be able to pick it up.

Anyway, definitely let us know if it becomes a huge burden so we can help with a solution.


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...