 		else
 			res.sendStatus 200
 
-Metrics.injectMetricsRoute(app)
+app.get "/health_check", healthCheck
+
+app.get "/health_check/redis", healthCheck
+
+
 
 Router = require "./app/js/Router"
 Router.configure(app, io, sessionSockets)


rclient = require("redis-sharelatex").createClient(Settings.redis.realtime)

app.get "/health_check/redis", (req, res, next) ->
	rclient.healthCheck (error) ->
		if error?
			logger.err {err: error}, "failed redis health check"


# work around frame handler bug in socket.io v0.9.16
require("./socket.io.patch.js") 
# Set up socket.io server
app = express()

server = require('http').createServer(app)
io = require('socket.io').listen(server)

