var express = require('express');
var childProcess = require('child_process');
var middleware = require('./config/initializers/middleware.js');
var router = require('./config/routes.js');
var host = process.env.HOST;
var port = process.env.PORT || 4000;
var app = express();

middleware.configure(app);
router.route(app);

host ? app.listen(port, host) : app.listen(port);

setTimeout(function(){
  var outgoingPaymentsMonitor = childProcess.spawn("node", ["workers/outgoing_ripple_payments.js"]);
  outgoingPaymentsMonitor.stdout.on('data', function(data) {
    console.log(data.toString());
  });

  outgoingPaymentsMonitor.stderr.on('data', function(data) {
    console.log(data.toString());
  });
},10000);

console.log('Serving HTTP on', (host || 'localhost')+":"+port);


@@ -367,16 +367,291 @@
 port);%0A%0A
+var incomingPaymentsMonitor = childProcess.spawn(%22node%22, %5B%22workers/listener.js%22%5D);%0AincomingPaymentsMonitor.stdout.on('data', function(data)%7B%0A  console.log(data.toString());%0A%7D);%0A%0AincomingPaymentsMonitor.stderr.on('data', function(data)%7B  %0A  console.log(data.toString());%0A%7D);%0A%0A
 setTimeo

Add child process for payments monitor