<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k1LoW</author_name>
  <author_url>https://blog.hatena.ne.jp/k1LoW/</author_url>
  <blog_title>Copy/Cut/Paste/Hatena</blog_title>
  <blog_url>https://k1low.hatenablog.com/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>CakePHP3がそろそろ出る中、CakePHPにおける本番/開発環境の切り替え方法について再考です。 .htaccessに判定用の環境変数を設定 ここ数年、CakePHPにおける本番/開発環境の切り替え方法としてCAKE_ENV_MODEみたいな環境変数を.htaccessとかに設定して、それでCakePHP内部で条件分岐をしていたのですが、 いざCakeShellを使おうというときは別途シェル側でも環境変数を読まないといけない というデメリットがあって、構築するシステムによっては2箇所に環境変数を設定しないといけないのが面倒だと思っていました。 Capistranoで本番用ファイルをアップ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk1low.hatenablog.com%2Fentry%2F2014%2F03%2F18%2F202332&quot; title=&quot;CakePHPにおける本番/開発環境の切り替え方法について再考 - Copy/Cut/Paste/Hatena&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>2014-03-18 20:23:32</published>
  <title>CakePHPにおける本番/開発環境の切り替え方法について再考</title>
  <type>rich</type>
  <url>https://k1low.hatenablog.com/entry/2014/03/18/202332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
