diff --git a/server.js b/server.js index 303f725..5a3f261 100644 --- a/server.js +++ b/server.js @@ -195,6 +195,28 @@ app.get('/:loc/status', function(req, res) { } }); +// temp testing for static home pages. +app.get('/home', function(req, res) { + // Even when the winston call is the only thing in here...IT NO WORKY!!! + winston.info('GET /home'); + // try to sleep here + var exec = require('child_process').execSync; + var cmd = 'sleep(1)'; + winston.info(cmd); + exec(cmd, function(error, stdout, stderr) { + if (error) { winston.error(error); } + winston.info(stdout); + }); + //res.status(404).send('Not found'); + //res.render('home', {}, function(err, html) { + //if(err !== null) { + //winston.error(err); + //} else { + //res.send(html); + //} + //}); +}); + setInterval(function() { // Check every hour to see if GoodMorning or GoodEvening has gone missing. pg.connect(conString, function(err, client, done) { diff --git a/views/default.hbs b/views/default.hbs index 15386e2..393147c 100644 --- a/views/default.hbs +++ b/views/default.hbs @@ -33,10 +33,6 @@
-