Skip to content

Commit

Permalink
Prevent heroku from idle killing us
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bergeron committed Jan 23, 2012
1 parent 19a1d09 commit da31f2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.js
Expand Up @@ -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

}


Expand Down

0 comments on commit da31f2e

Please sign in to comment.