<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>maru_cc</author_name>
  <author_url>https://blog.hatena.ne.jp/maru_cc/</author_url>
  <blog_title>maru.cc@はてな</blog_title>
  <blog_url>https://marucc.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>ローカルの開発サーバ、ステージングサーバ、本番サーバ。ある程度の規模になると同じプログラムを複数の環境で動かす必要がある。 URLやDB接続のためのDSNなどは、当然各環境によって変わってくる。そこで、環境変数に環境名(release|stg|dev|localdev)などを持たせ、それを設定ファイル読み込みに使う。Apacheの環境変数で設定 httpd.confレベルで、 ディレクティブで設定 &lt;Directory &quot;/path/to/DocumentRoot&quot;&gt; SetEnv SERVER_STATUS release &lt;/Directory&gt; バッチ起動時に環境変数で設定 $ expo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarucc.hatenablog.com%2Fentry%2F20080207%2F1202364374&quot; title=&quot;環境差異を吸収する方法 - maru.cc@はてな&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>2008-02-07 15:06:14</published>
  <title>環境差異を吸収する方法</title>
  <type>rich</type>
  <url>https://marucc.hatenablog.com/entry/20080207/1202364374</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
