Rails 製 Web アプリを Heroku で動かしているんだけど、Heroku の Dyno は1時間以上放置されると寝ちゃうようだ。 Dynos and the Dyno Manager Heroku Dev Center 寝起きも悪いんで、1時間おきにかまってあげて Dyno を寝かさないようにした方が良さそう。 Heroku では curl が使えるから、アドオンの Heroku Scheduler を追加して、 curl http://your-app-name.herokuapp.com/ のコマンドを1時間おきに実行するように設定。これで今のところ、Web アプリにアクセスして数10秒待たされる、なんてことは無くなった。