<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>letitride</author_name>
  <author_url>https://blog.hatena.ne.jp/letitride/</author_url>
  <blog_title>追憶行</blog_title>
  <blog_url>https://www.letitride.jp/</blog_url>
  <categories>
    <anon>テック</anon>
  </categories>
  <description>Rails Taskの記述 Railsを通してコマンド実行したい処理は/lib/tasks/に配置したファイルに記述する ファイル作成例 /lib/tasks/crawler.rb class Tasks::Crawler def self.execute #サイト巡回処理 #サイトの登録処理 Modelが利用できる Site.save() end end コマンドラインから実行 以下で実行できる $ rails runner Tasks::Crawler.execute Herokuで定期的に実行する Herokuで定期的に実行するには無料のHeroku Schedulerのadd onを利…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.letitride.jp%2Fentry%2F2019%2F06%2F21%2F222503&quot; title=&quot;Rails 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://cdn-ak.f.st-hatena.com/images/fotolife/l/letitride/20190621/20190621222433.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-21 22:25:03</published>
  <title>Rails Herokuでバッチ処理実行</title>
  <type>rich</type>
  <url>https://www.letitride.jp/entry/2019/06/21/222503</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
