Small script to prevent a Heroku application from sleeping.
- Create an account to Heroku
- Follow this tutorial to deploy on Heroku
- Follow this tutorial to add environment variable to Heroku. You can also use Figaro
- Define which URLs you want to keep awake with
URLs
variable
- Define which URLs you want to keep awake with
- Follow this tutorial to add a scheduled jobs on your app. I recommend running the application every 10 minutes