Skip to content

Turbo command to start Vite and APIs at the same time #7851

Answered by anthonyshew
leo-petrucci asked this question in Help
Discussion options

You must be logged in to vote

Looking at the issue, it appears the problem with the Vite dev server has been fixed. Can you confirm with the latest version of turbo?

As far as depending on persistent tasks goes, Turborepo is working correctly here. We can't depend on a persistent task since it will never exit.

In the bigger picture, it's seemingly impossible for turbo to know when to start the frontends according to the state of your backends (since they don't exit).

Said another way, the big question is: How would Turborepo know when your backends are prepared so that it can start the frontends?

What I recommend you do today is use two separate turbo processes, in two terminals. First, run a turbo run dev:backends. S…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leo-petrucci
Comment options

Answer selected by leo-petrucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants