Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "pm.sh", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "pm2 without the fat in 1 shellscript, unix processmanagement using simply 'ps' and 'flock' and a teaspoon of shellscript & extra features", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,3 +16,3 @@ <img src="doc/logo.png" width="120"/> | ||
pm list list appnames | ||
pm add <appdir> add application(dir which contains application definition file) | ||
pm add <appdir> [cmd] add application(dir which contains application definition file) | ||
pm remove <appdir> remove application | ||
@@ -35,11 +35,20 @@ pm status show app(names) and their status | ||
$ pm init | ||
$ pm add ~/myapps/yourapp | ||
$ pm add . pinger 'sleep 5m && curl http://foo.com/ping' | ||
$ pm add /apps/nodejs/proxy | ||
$ pm add /apps/nodejs/app1 | ||
$ pm add /apps/nodejs/dbworker dbworker1 | ||
$ pm add /apps/nodejs/dbworker dbworker2 | ||
$ pm add /apps/nodejs/dbworker dbworker3 | ||
$ pm status | ||
APP PID %CPU %MEM PORT RSS TTY STAT START TIME COMMAND | ||
APP STATUS PORT RESTARTS USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | ||
proxy running 80 0 foo 24900 1.6 10.0 5800 1744 pts/2 S 19:15 0:00 npm start | ||
app1 stopped 3001 0 foo 24901 1.0 20.0 5800 1744 pts/2 S 19:19 0:00 npm start | ||
pinger stopped none 0 foo 24909 1.0 20.0 5800 1744 pts/2 S 19:19 0:00 npm start | ||
dbworker1 stopped none 0 foo 24903 4.0 30.0 5800 1744 pts/2 S 19:35 0:00 ./dbworker | ||
dbworker2 stopped none 0 foo 24904 1.0 10.0 5800 1744 pts/2 S 19:45 0:00 ./dbworker | ||
dbworker3 stopped none 12 foo 24905 0.0 0.0 5800 1744 pts/2 S 19:55 0:00 ./dbworker | ||
yourapp | ||
$ pm start yourapp | ||
$ pm restart yourapp | ||
$ pm stop yourapp | ||
$ pm start app1 | ||
$ pm start pinger | ||
$ pm status | ||
@@ -49,7 +58,7 @@ | ||
proxy running 80 0 foo 24900 1.6 10.0 5800 1744 pts/2 S 19:15 0:00 npm start | ||
proxy stopped 80 0 foo 24900 1.6 10.0 5800 1744 pts/2 S 19:15 0:00 npm start | ||
app1 running 3001 0 foo 24901 1.0 20.0 5800 1744 pts/2 S 19:19 0:00 npm start | ||
website running 3002 0 foo 24902 1.2 10.0 5800 1744 pts/2 S 19:25 0:00 npm start | ||
dbworker1 running none 0 foo 24903 4.0 30.0 5800 1744 pts/2 S 19:35 0:00 ./dbworker | ||
dbworker2 running none 0 foo 24904 1.0 10.0 5800 1744 pts/2 S 19:45 0:00 ./dbworker | ||
pinger running none 0 foo 24909 1.0 20.0 5800 1744 pts/2 S 19:19 0:00 npm start | ||
dbworker1 stopped none 0 foo 24903 4.0 30.0 5800 1744 pts/2 S 19:35 0:00 ./dbworker | ||
dbworker2 stopped none 0 foo 24904 1.0 10.0 5800 1744 pts/2 S 19:45 0:00 ./dbworker | ||
dbworker3 stopped none 12 foo 24905 0.0 0.0 5800 1744 pts/2 S 19:55 0:00 ./dbworker | ||
@@ -63,7 +72,5 @@ | ||
* support for [Application Definition-files](doc/application-definition.md) | ||
* multiple configurations using `PM_CONFIG=alternate_config_dir pm.sh` | ||
* nodejs `package.json` support | ||
* inbound / outbound custom webhooks (per application-config) | ||
* events can be pushed to google analytics (per application-config) | ||
* [TODO] app.sh support (native) | ||
* [TODO] automatically pull branch from github on github webhook | ||
@@ -73,2 +80,3 @@ * [TODO] app.json support | ||
* [TODO] pm2.json support | ||
* [BETA] multiple configurations using `PM_CONFIG=alternate_config_dir pm.sh` | ||
@@ -79,5 +87,6 @@ ## Git / Bitbucket / Anywhere push webhooks | ||
$ pm config pmserver && pm start pmserver | ||
$ pm config pmserver 8080 | ||
$ pm start pmserver | ||
* Now you can enter __ttp://yourdomain.com:8080/{yourappname}/pull__ as Github/BB webhook value (only push!) | ||
* Now you can enter __ttp://yourdomain.com:8080/pull/{yourappname}_ as Github/BB webhook value (only push!) | ||
@@ -84,0 +93,0 @@ Or call from another service: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
214545
42
100
0