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

pm2 doesn't find apps by name if they start with a digit #1099

Closed
ghost opened this issue Mar 16, 2015 · 3 comments
Closed

pm2 doesn't find apps by name if they start with a digit #1099

ghost opened this issue Mar 16, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 16, 2015

Hello

I have stumbled upon this and I don't know if it is a known issue or not.

$ pm2 start path/to/app.js -n "1-n-only"

[PM2] Process path/to/app.js launched
┌──────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ pid   │ status │ restart │ uptime │ memory      │ watching │
├──────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────────────┼──────────┤
│ 1-n-only │ 0  │ fork │ 10290 │ online │ 0       │ 0s     │ 18.777 MB   │ disabled │
└──────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────────────┴──────────┘
 Use `pm2 show <id|name>` to get more details about an app

But when I try to stop/restart/delete the app by name I get:

$ pm2 stop 1-n-only

[PM2] Stopping 1-n-only
[PM2][ERROR] Process 1-n-only not found

If I change the name to start with a letter everything works fine.

@jshkurti
Copy link
Contributor

Great, thanks, it will be fixed on the next release coming this week :)

@ghost
Copy link
Author

ghost commented Mar 16, 2015

Great, thank you! 👍

@jshkurti jshkurti self-assigned this Mar 19, 2015
jshkurti added a commit that referenced this issue Mar 19, 2015
@jshkurti
Copy link
Contributor

Done :)

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

1 participant