require('dotenv').load();

var cluster = require('cluster');
var restart = require('restart');
var port = process.env.port;

if(cluster.isMaster){
    console.log('Node ' + process.version + ', port ' + port);
}

module.exports = function(main){
    var child = init.bind(this, main);

    restart(child);
};

function init(main){
    var koa = require('koa');
    var logger = require('koa-logger');
    var serve = require('koa-static');
    var app = koa();

    app.use(logger);
    app.use(serve('public'));
    main(app);
    app.listen(port);
}
@@ -84,24 +84,121 @@
 'restart');%0A
+var koa = require('koa');%0Avar logger = require('koa-logger');%0Avar serve = require('koa-static');%0A
 var port = p
@@ -425,117 +425,8 @@
 n)%7B%0A
-    var koa = require('koa');%0A    var logger = require('koa-logger');%0A    var serve = require('koa-static');%0A
     

move your body every every body