Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's sometimes useful to delay the start of one of the processes #65

Closed
dchambers opened this issue Oct 18, 2016 · 4 comments
Closed

It's sometimes useful to delay the start of one of the processes #65

dchambers opened this issue Oct 18, 2016 · 4 comments

Comments

@dchambers
Copy link

I've needed this a couple of times when I've started a server in one of the processes, and some app that expects that server to be immediately available in the other process. I've been able to solve this problem by making use of the wait-on package, as follows:

"start": "concurrently -k -s first \"npm run server\" \"npm run app\"",
"server": "node server.js",
"app": "wait-on http://localhost:3000/ && node app.js"

I'm just creating this issue to help other people that hit the same issue.

@kimmobrunfeldt
Copy link
Contributor

Thanks for sharing!

@jcrben
Copy link

jcrben commented Apr 4, 2017

This is such a complementary feature. I suggest adding this suggestion to the readme.

I also think that a tool which can handle both makes sense.

@joshuapinter
Copy link

@dchambers Thanks for sharing this! Exactly what I needed and saved me time looking for a solution. 🙏

@MonrealRyan
Copy link

@dchambers thanks for this. it helps me a lot. cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants