author
02 July 2014

Since PM2 v0.9 the code has been refactored, and now it's much more modulable. We directly exposed PM2 CLI commands (command line interface) to a seamless API (application programming interface). You can now embed a process management / code daemonization logic to your application with ease and use PM2 command directly from your code. Simple example You can access to the example here: https://github.com/keymetrics/pm2-programmatic-api First, add PM2 to your package.json: $ npm install pm2 --save…

Read more
author
25 June 2014

We announced it at NodeJS paris meetup (here are the slides) and we did it! For the release of PM2 0.9.x, a new awesome and simple feature will make your life much easier. We embedded a modified version of deploy from the Node.js Mozart, TJ Holowaychuk and we also refactored the JSON application declaration. Internally it's a simple bash script that doesn't need any external dependencies to be installed. Here are the features of this embedded deploy system: $ pm2 deploy <configuration_file&g…

Read more
author
17 June 2014

This tutorial is about setting up an hardened NGINX/PM2 combo server (on ubuntu). Connecting via SSH First let's copy some SSH keys to facilitate connections to the remote server: $ ssh-keygen -t rsa # generate pub/priv keys $ ssh-copy-id root@myserver.com # copy key to target server Now let's SSH to it: $ ssh root@myserver.com Usefull package These packages are important for HTTPS connections, node.js: $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install htop…

Read more