<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xoyip</author_name>
  <author_url>https://blog.hatena.ne.jp/xoyip/</author_url>
  <blog_title>ぴよログ</blog_title>
  <blog_url>https://xoyip.hatenablog.com/</blog_url>
  <categories>
    <anon>Heroku</anon>
    <anon>Ruby</anon>
  </categories>
  <description>HerokuにはSchedulerっていうAddonがあって、それを使うと10分毎、1時間毎、1日毎という単位で好きなコマンドを動かすことができる。 ちょっとしたスクリプトを動かすためだけにサーバーを立てるのは面倒だから、そこをHerokuにしてしまおうという荒業を考えた。 Rackアプリケーションの作成 まず、Herokuのドキュメントを参考にしてほぼ最小限のRackアプリケーションを作る。 Deploying Rack-based Apps | Heroku Dev Center # config.ru run lambda { |env| [200, {'Content-Type'=&gt;'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F06%2F17%2F203000&quot; title=&quot;1日に数回起動するようなスクリプトをHerokuで動かす荒業 - ぴよログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://www.evernote.com/shard/s15/sh/82ef52fb-28b4-4936-9d4d-8b7fa624ce64/4c6510a1e26c30b1a0b46bc2b60330b1/deep/0/Heroku-Scheduler.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-17 20:30:00</published>
  <title>1日に数回起動するようなスクリプトをHerokuで動かす荒業</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/06/17/203000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
