-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
script to spawn pm2 hangs #235
Comments
Yep, pm2 should be already daemonized before launching commands. A ping method will be available on the 0.6.16, you should call it and wait for his answer before doing any operations with pm2. Is this approach okey for you ? |
If pm2 hasn't started yet, running the following code will not hang, but need to kill the process manually at the end of the code. I think
|
What is the command that needs to run prior to EDIT: Running |
If your pm2 is not runnig and you try to spawn pm2 from a script, it hangs. Abort the script and then run it again, it becomes normal.
app.js:
please add support for pm2 to run from other script (for example, the Gruntfile.js).
node version: v0.10.24
pm2 version: v0.6.12
tested on mac & linux
The text was updated successfully, but these errors were encountered: