uclaradio / uclaradio.com

UCLA Radio Website
http://www.uclaradio.com
GNU Affero General Public License v3.0
31 stars 4 forks source link

Keep blog Heroku app awake #433

Closed arjunr00 closed 5 years ago

arjunr00 commented 5 years ago

The blog's Heroku app goes to sleep after a period of inactivity, which means that it takes forever to wake back up. This causes much frustration (I know I got frustrated when it was demonstrated to me). Pinging the server at regular intervals will keep it awake.

This is going in uclaradio.com instead of uclaradio-blog because the former is always live, and so having a loop that pings the blog regularly would be more useful here.

Warning: This may deplete the app's free dyno hours. Before considering this, we need to check to see whether we can keep the app awake without incurring any (additional?) cost.

arjunr00 commented 5 years ago

For now, I'll set up a small script to ping the server every 29 minutes, because I believe a Heroku app on the most basic plan sleeps after 30 minutes of inactivity. If this number is incorrect, I'll amend it as required.