From da31f2e626e211b77f9ef383be625b61b7587b66 Mon Sep 17 00:00:00 2001 From: Paul Bergeron Date: Mon, 23 Jan 2012 15:41:15 -0500 Subject: [PATCH] Prevent heroku from idle killing us --- app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.js b/app.js index 14f2723..11cbed5 100755 --- a/app.js +++ b/app.js @@ -41,6 +41,12 @@ if(process.env['HEROKU']) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end(''); }).listen(process.env['PORT'], "0.0.0.0"); + + //Prevent heroku from idle killing us + setInterval( function() { + http.get({host: "pooptag.herokuapp.com"}, function(res) {}); + }, 30000); //30 seconds + }