Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669024yIf you need a stay alive, use a cron but if it's long term, you'll probably hit your monthly hours anyway and have a few days at the end of the month of down time and be forced up to a paid plan.
If it's a service and not a website you could do a get in advance if it's predictable to make it wake up though. -
10Dev28534yUse a cron job to ping the server, like others have said
As for how often, I’m fairly certain Heroku goes to sleep after 30 minutes, but I’m not sure about the others -
@theabbie thanks I didn't know about cron-job.org has that service nice. Will try it now. My apps is for POC demo purposes only don't worry for long term.
-
Remember that most of those services have a maximum *total* time a month that your service can be up to prevent you doing just that.
-
justpat134yUse two accounts on the same service (or on two diferent services if they check IP address) and alternate between them
Can i do api call every hour a free service so that it will not fall asleep? Like www.repl.it, netlify and Heroku?
What is the duration when they fall asleep? 2 hours?
question