try {
	var colors = require("colors");
	var fs = require("fs");
    var app = require("express")();
    var http = require("http").Server(app);
    var io = require("socket.io")(http);
    var express = require("express");

    var branch = "master";

    var git = require('git-rev');

    app.use(require("express").static('public'));

    app.get("/", function(req, res) {
        console.log("app.js      - " + "[Refresh - Food] Sending homepage".blue);
        fs.readFile("pages/index.html", "utf-8", function(err, data) {
            res.send(data);
        });
    });

    app.get("/update-git", function(req, res){
        console.log("Reloading git repo");
        updateGit();
        res.send({message:"OK",code:200})
    });

    function run_cmd(cmd, args, cb, end) {
        var spawn = require('child_process').spawn,
            child = spawn(cmd, args),
            me = this;
        child.stdout.on('data', function (buffer) { cb(me, buffer) });
        child.stdout.on('end', end);
    }

    function gitFetch(callback){
        var git_fetch_output = new run_cmd(
            'git', ['fetch','--all'],
            function (me, buffer) { me.stdout += buffer.toString() },
            function(){
                callback(git_fetch_output.stdout);
            }
        );
    }

    function gitReset(callback){
        var git_reset_output = new run_cmd(
            'git', ['reset','--hard','origin/'+branch],
            function (me, buffer) { me.stdout += buffer.toString() },
            function(){
                callback(git_reset_output.stdout);
            }
        );
    }

    function updateGit(){
        gitFetch(function(output){
            console.log("app.js      - " + output.green);
            gitReset(function(output){
                console.log("app.js      - " + output.green);
            });
        });
    }

	http.listen(3001, function() {
        console.log("app.js      - " + "[Refresh - Food] Running at ".green + "http://localhost:3001".blue);
    });
} catch (e) {
    console.log("app.js      - " + "[Refresh] FATAL ERROR".red);
    console.log(e);
}
@@ -575,26 +575,27 @@
 );%0A%0A    app.
-ge
+pos
 t(%22/update-g

Fix webhook