この記事は2016/5/31までの内容です。 Twitter bot の運用に heroku を使っている [twitter:@riocampos] です。Web app はあまり使っていません。 Heroku free dynoがとうとう24x7じゃなくなったorz - Qiita でも記載しましたが、 Free dyno だと18時間起動/6時間強制睡眠を強要されるようになります(現状ではまだ24時間起動出来ていますが、そろそろ強要されそう)。 ということで対策を講じました。2つの app を使って交互に起動させる、という手段です*1。 process type として web を使います。それ以外では通信が行えないのでダメです。が、web だと30分の間にアクセスが生じないとプロセスが止められるのでその対策も行っています。 また、希望の時間帯に app を止めるために Process