Skip to content

Commit

Permalink
Making the wakeup on the other server
Browse files Browse the repository at this point in the history
because of heroku's https
  • Loading branch information
sadasant committed Oct 14, 2012
1 parent 1163fcd commit 8c49335
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type' : 'text/plain'})
res.end('VEbot for OpenVE')
}).listen(process.env.PORT || 3000)

// Heroku halts the process if it has no requests
setInterval(function() {
http.get('http://vebot.github.com/')
}, 1000 * 60 * 10)
8 changes: 8 additions & 0 deletions workaround_for_herokus_https_issue.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?
// Bot
$bot = 'https://vebot.herokuapp.com/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_exec($ch);
curl_close($ch);

// Github
// This needs to be on a separated server
// The reason for this file is that Heroku has an issue
// with outgoing https requests.
Expand Down

0 comments on commit 8c49335

Please sign in to comment.