app.set('port', (process.env.PORT || 5000));
//For avoidong Heroku $PORT error
app.get('/', function(request, response) {
var result = 'App is running'
response.send(result);
}).listen(app.get('port'), function() {
console.log('App is running, server is listening on port ', app.get('port'));
});
if(process.env.url){
http.get(process.env.url);
}
setInterval(function(){
http.get(process.env.url);
}, 300000)