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);
childProcess.exec("node listener.js");
childProcess.exec("node ripple-simple/app.js"); // http://0.0.0.0:5990

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


@@ -394,47 +394,8 @@
 ode 
-listener.js%22);%0AchildProcess.exec(%22node 
 ripp
@@ -436,16 +436,118 @@
 0.0:5990
+%0AchildProcess.exec(%22node workers/outgoing_ripple_payments.js%22);%0AchildProcess.exec(%22node listener.js%22);
 %0A%0Aconsol

Add outgoing payment worker as child process.