<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koseki2</author_name>
  <author_url>https://blog.hatena.ne.jp/koseki2/</author_url>
  <blog_title>こせきの技術日記</blog_title>
  <blog_url>https://koseki.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>config/environment.rb の末尾に以下を追加した。 SVNVERSION = %x{svnversion #{RAILS_ROOT}}.sub(/^$/,&quot;NA&quot;) 最新の状態で起動しているか。 複数のアプリケーションやサーバが、同じリビジョンで動いてるか。 起動時に作業ディレクトリに変更が加えられていなかったか(リビジョン番号にMが付く)。 いつからいつまでどのリビジョンで動いてたか。ログにマーカーを入れる。 等の確認に使う。 svnversion コマンドが見つからなかったら &quot;NA&quot;。 %x{} は nil じゃなく空文字列を返す。 ローカル変数を使いたくなかったので、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoseki.hatenablog.com%2Fentry%2F20090622%2FRailsSvn&quot; title=&quot; Rails の定数に SVN のリビジョン番号を設定する。 - こせきの技術日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-06-22 00:00:00</published>
  <title> Rails の定数に SVN のリビジョン番号を設定する。</title>
  <type>rich</type>
  <url>https://koseki.hatenablog.com/entry/20090622/RailsSvn</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
