Is it possible to run multiple commands that dont exit? #2910
|
I am trying to set up some dev commands that run multiple dev servers locally and I am having trouble getting them to run within a single terminal window if one of the commands doesn't exit. For example, I am trying to forward Stripe webhooks to local server, but that command doesn't exist. So using it as a stripe listen --forward-to localhost:54321/functions/v1/stripe-webhooksI've been getting around this by just opening different windows and running the commands that don't exit, or putting the non-existing command last in the chain of commands. It would be really slick if with one command I can could spin up the various services, have them listen on their ports or whatever it is they do if they dont exit, and still have the command finish every other command. Any help would be appreciated! |
Replies: 1 comment
|
It's not possible right now to depend on a task that doesn't exit. We introduced a config to make this harder to do in v1.7. You can run non-exiting tasks with the |
It's not possible right now to depend on a task that doesn't exit. We introduced a config to make this harder to do in v1.7.
You can run non-exiting tasks with the
--parallelflag, but if you do, they will not be aware of each other, and will not wait for one to be available before the other one tries to run.