pm2
Advanced tools
Comparing version 0.4.11 to 0.4.12
{ | ||
"name": "pm2", | ||
"preferGlobal": "true", | ||
"version": "0.4.11", | ||
"version": "0.4.12", | ||
"engines" : { | ||
@@ -51,3 +51,3 @@ "node" : ">=0.8" | ||
"multimeter": "git://github.com/Unitech/node-multimeter.git", | ||
"usage" : "0.3.5", | ||
"usage" : "0.3.4", | ||
"axon-rpc" : "0.0.2", | ||
@@ -54,0 +54,0 @@ "watch" : "0.7.0", |
@@ -15,3 +15,3 @@ ![Monit](https://github.com/unitech/pm2/raw/master/pres/pm22.png) | ||
``` | ||
```bash | ||
npm install -g pm2 | ||
@@ -22,36 +22,36 @@ ``` | ||
```bash | ||
$ npm install pm2 -g # Install pm2 command line globally | ||
$ pm2 start app.js -i 4 # Daemonize pm2 and Start 4 clustered instances of app.js | ||
# You can also pass the 'max' params to start | ||
# the right numbers of processes depending of CPUs | ||
$ pm2 list # Display all processes status | ||
$ pm2 monit # Monitor all processes | ||
$ pm2 logs # Display all processes logs in streaming | ||
$ pm2 dump # Dump the states of all processes | ||
$ pm2 stop pm2_id # Stop specific process id | ||
$ pm2 stopAll # Stop all processes | ||
$ pm2 resurrect # Put online previously dumped processes | ||
$ pm2 restart pm2_id # Restart specific process | ||
$ pm2 restartAll # Restart all proccesses | ||
$ pm2 stopAll # Stop all processes | ||
$ pm2 generate app # Generate a JSON process configuration | ||
$ pm2 web # Health computer API endpoint (http://localhost:9615) | ||
``` | ||
$ npm install pm2 -g // Install pm2 command line globally | ||
$ pm2 start app.js -i 4 // Daemonize pm2 and Start 4 clustered instances of app.js | ||
// You can also pass the 'max' params to start | ||
// the right numbers of processes depending of CPUs | ||
$ pm2 list // Display all processes status | ||
$ pm2 monit // Monitor all processes | ||
$ pm2 logs // Display all processes logs in streaming | ||
$ pm2 dump // Dump the states of all processes | ||
$ pm2 stop pm2_id // Stop specific process id | ||
$ pm2 stopAll // Stop all processes | ||
$ pm2 resurrect // Put online previously dumped processes | ||
$ pm2 restart pm2_id // Restart specific process | ||
$ pm2 restartAll // Restart all proccesses | ||
$ pm2 stopAll | ||
$ pm2 generate app // Generate a JSON process configuration | ||
$ pm2 web // Health computer API endpoint (http://localhost:9615) | ||
``` | ||
## Differents way of starting a process | ||
## Different ways of starting a process | ||
``` | ||
$ pm2 start app.js -i max // Will start maximum processes depending on CPU availables | ||
$ pm2 start app.js -i 3 // Will start 3 processes | ||
$ pm2 start app.json // Start processes with options declared in app.json | ||
// Go to chapter Multi process JSON declaration for more | ||
```bash | ||
$ pm2 start app.js -i max # Will start maximum processes depending on CPU availables | ||
$ pm2 start app.js -i 3 # Will start 3 processes | ||
$ pm2 start app.json # Start processes with options declared in app.json | ||
# Go to chapter Multi process JSON declaration for more | ||
$ pm2 start app.js -i max -- -a 23 // Pass arguments after -- to app.js | ||
$ pm2 start app.js -i max -e err.log -o out.log -w // Will start and generate a configuration file | ||
$ pm2 start app.js -i max -- -a 23 # Pass arguments after -- to app.js | ||
$ pm2 start app.js -i max -e err.log -o out.log -w # Will start and generate a configuration file | ||
``` | ||
## Updating pm2 procedure (and keeping processes alive) | ||
## Updating pm2 and keeping processes alive | ||
``` | ||
```bash | ||
$ pm2 dump | ||
@@ -67,6 +67,6 @@ $ npm install -g pm2@latest | ||
``` | ||
```bash | ||
$ git clone https://github.com/Unitech/pm2.git | ||
$ cd pm2 | ||
$ npm install --dev | ||
$ npm install # Or do npm install --dev if devDependencies are not installed | ||
$ npm test | ||
@@ -128,3 +128,3 @@ ``` | ||
``` | ||
```json | ||
[{ | ||
@@ -147,3 +147,3 @@ "name" : "echo", | ||
Then with the cli : | ||
``` | ||
```bash | ||
$ pm2 start processes.json | ||
@@ -154,3 +154,3 @@ ``` | ||
``` | ||
```bash | ||
npm test | ||
@@ -172,7 +172,7 @@ ``` | ||
You can install processes and communicate with them | ||
``` | ||
```bash | ||
$ m2 install web-pm2 | ||
$ m2 list | ||
$ m2 start web-pm2 | ||
$ m2 info web-pm2 // list | ||
$ m2 info web-pm2 # list | ||
``` | ||
@@ -179,0 +179,0 @@ |
Sorry, the diff of this file is not supported yet
458971
+ Addedusage@0.3.4(transitive)
- Removedusage@0.3.5(transitive)
Updatedusage@0.3.4