Friday 23 June 2017

How does node app work with Heroku Cron ?

Im learning nodejs and just finished my 1st app which grabs JSON from a link. I'm planning to use Heroku-cron plugin to make my app run every 5 mins to check for new JSON values.However, I noticed when running my app in my laptop's terminal,that the nodejs app won't stop unless I use ctrl + c. Will that cause a problem if I use cron without killing my app 1st ? i.e: Will there be multiple instances of my app running at same time?How should I approach this ? Hints ?update:What i'm trying to say is, how does heroku terminates the node js app so that I can re-run it again and check for json data.I guess that's the tl;dr of it

Submitted June 23, 2017 at 10:57AM by sohaeb

No comments:

Post a Comment