Migrate to pm2 on IIS

This document illustrates migration from tjanczuk/iisnode to the node native process manager, pm2 (http://pm2.keymetrics.io/) on windows with IIS. This fixes a DAT startup error and allows for more flexibility in setup and maintenance.


Install Advanced Request Routing:


Open inetmgr

Open Web Platform Installer

Search for and install Advanced Request Routing


Enable proxy:

Open Advanced Request Routing from inetmgr

Click Server Proxy Settings from Proxy

Select Enable Proxy checkbox

Select PassThrough for HTTP Version dropdown


Traffic to [server]:/api/* will need to be routed to port 3000. An example web.config accomplishing this is below.

<?xml version="1.0" encoding="UTF-8"?>





               <rule name="ReverseProxyInboundRule1" stopProcessing="true">

                   <match url="(api/.*)" />

                   <action type="Rewrite" url="http://localhost:3000/{R:1}" />







Install pm2:

Open terminal and type


npm install -g pm2


Start pm2:

Navigate to DAT folder in terminal and type


pm2 start bin/www


For questions/comments contact Tobias Nteireho (tobias@cali.org)