mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
change tutorial link for installing nvm
This commit is contained in:
parent
d625d5ec81
commit
86c7ba87cb
@ -9,7 +9,7 @@ Compatible with [io.js](https://github.com/iojs/io.js) and [Node.js](https://git
|
||||
Compatible with CoffeeScript.
|
||||
Works on Linux (stable) & MacOSx (stable) & Windows (bêta).
|
||||
|
||||
[](http://badge.fury.io/js/pm2) [](https://travis-ci.org/Unitech/PM2) [](https://gitter.im/Unitech/PM2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://www.omniref.com/js/npm/pm2)
|
||||
[](http://badge.fury.io/js/pm2) [](https://travis-ci.org/Unitech/PM2) [](https://gitter.im/Unitech/PM2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
[](https://nodei.co/npm/pm2/)
|
||||
|
||||
@ -19,7 +19,7 @@ Works on Linux (stable) & MacOSx (stable) & Windows (bêta).
|
||||
$ npm install pm2 -g
|
||||
```
|
||||
|
||||
*npm is a builtin CLI when you install Node.js - [Installing Node.js or io.js with NVM](https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server#how-to-install-using-nvm)*
|
||||
*npm is a builtin CLI when you install Node.js - [Installing Node.js or io.js with NVM](https://keymetrics.io/2015/02/03/installing-node-js-and-io-js-with-nvm/)*
|
||||
|
||||
## Start an application
|
||||
|
||||
|
||||
14
examples/axm/auto-init.js
Normal file
14
examples/axm/auto-init.js
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
var pmx = require('pmx').init();
|
||||
|
||||
var http = require('http');
|
||||
|
||||
http.createServer(function(req, res) {
|
||||
res.writeHead(200);
|
||||
res.end('hey');
|
||||
}).listen(8005);
|
||||
|
||||
pmx.action('refresh:db2', {comment : 'Refresh main database'}, function(reply) {
|
||||
throw new Error('hey');
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user