i'm currently using heroku (www.heroku.com) to host my web app : http://jeveuxskier.ski which is working pretty well as an http app. Now i'd like to deploy a non-http nodeJS App to heroku. Basically, it's just a cron that calls a webservice everyday à 1:30 and stores the result into my firebase database.
However, i can't manage to deploy that on heroku as it seems to want a http server launched to receive requests etc..
I've tried to put my script into a http server and it looks like the cron service is well initiated when i call my heroku container url but then, after few minutes, the container gets into snooze state. If anyone has an idea of how deploying that kind of script to heroku (free) account :
var rule = new schedule.RecurrenceRule();
rule.dayOfWeek = [0, new schedule.Range(0, 6)]; // every day
rule.hour = 1; // 1h to 1h30 am
rule.minute = 30;
var j = schedule.scheduleJob(rule, function(){
console.log("cron woke up at:" + new Date());
});
Thanks in advance,
Best regards,
Quentin BERNET