{"id":5431,"date":"2011-03-18T17:30:01","date_gmt":"2011-03-18T08:30:01","guid":{"rendered":"http:\/\/fukata.org\/?p=5431"},"modified":"2017-08-11T22:58:49","modified_gmt":"2017-08-11T22:58:49","slug":"codeigniter2-multiple-environment-settings","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/5431\/","title":{"rendered":"[CodeIgniter2.x]\u74b0\u5883\u5207\u308a\u5206\u3051\u306b\u3064\u3044\u3066"},"content":{"rendered":"

\u6700\u8fd1\u3001\u8da3\u5473\u3067\u4f5c\u6210\u3057\u3066\u3044\u308bWEB\u30a2\u30d7\u30ea\u3067CodeIgniter 2\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u30b3\u30a2\u90e8\u5206\u306e\u30bd\u30fc\u30b9\u3092\u773a\u3081\u3066\u3044\u308b\u3068\u74b0\u5883\u5225\u8a2d\u5b9a\u3092\u5207\u308a\u5206\u3051\u308b\u6a5f\u69cb\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u5c11\u3057\u30bd\u30fc\u30b9\u3092\u8ffd\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n

\u7d50\u8ad6\u304b\u3089\u8a00\u3048\u3070\u3001\u672b\u7aef\u306eindex.php\u5185\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308bENVIRONMENT\u5b9a\u6570\u306e\u5024\u3092development,testing,production\u306e\u3044\u305a\u308c\u304b\u306b\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u3001
\napplication\/config\u306b\u95a2\u3057\u3066\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u69cb\u9020\u3067\u74b0\u5883\u5225\u306b\u7ba1\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002development,testing,production\u306b\u95a2\u3057\u3066\u306f\u3001\u4efb\u610f\u306e\u5024\u306b\u5909\u66f4\u53ef\u80fd\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3082\u4e00\u7dd2\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

\r\n.\/\r\n`-- application\r\n    `-- config\r\n        |-- config.php         # ENVIRONMENT\u306b\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3002\r\n        |-- development\r\n        |   `-- config.php     # ENVIRONMENT=development\u306e\u6642\u3001\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3002\r\n        |-- testing\r\n        |   `-- config.php     # ENVIRONMENT=testing\u306e\u6642\u3001\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3002\r\n        `-- production\r\n            `-- config.php     # ENVIRONMENT=production\u306e\u6642\u3001\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3002\r\n<\/pre>\n

\u74b0\u5883\u5225\u8a2d\u5b9a\u306f\u5225\u30d5\u30a1\u30a4\u30eb\u3067\u5b8c\u5168\u306b\u5206\u96e2\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u30ea\u30ea\u30fc\u30b9\u6bce\u306e\u30df\u30b9\u306a\u3069\u3082\u5c11\u306a\u304f\u306a\u308a\u826f\u3044\u3067\u3059\u3088\u306d\u3002\u3066\u3044\u3046\u304b\u3001CodeIgniter 1\u3092\u4f7f\u3063\u3066\u305f\u6642\u306f\u81ea\u524d\u3067\u74b0\u5883\u8a2d\u5b9a\u3092\u5207\u308a\u66ff\u3048\u308bshell\u3092\u66f8\u3044\u3061\u3083\u3063\u3066\u307e\u3057\u305f\u30fb\u30fb\u30fb\u3002\u3082\u3057\u304b\u3057\u305f\u30891\u7cfb\u306e\u6642\u304b\u3089\u3053\u306e\u6a5f\u69cb\u3063\u3066\u63d0\u4f9b\u3055\u308c\u3066\u305f\u3093\u3067\u3057\u3087\u3046\u304b\uff1f\u3082\u3057\u304b\u3057\u305f\u30891\u7cfb\u306b\u3082\u540c\u69d8\u306e\u6a5f\u69cb\u304c\u3042\u308b\u304b\u3082\u3002\u3068\u601d\u3044\u3001\u8efd\u304f\u30bd\u30fc\u30b9\u3092\u8ffd\u3063\u3066\u307f\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u308c\u3089\u3057\u3044\u30b3\u30fc\u30c9\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/del>\u3082\u3057\u30011\u7cfb\u3067\u3082\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u53ef\u80fd\u3067\u3042\u308c\u3070\u305d\u308c\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n

\u8ffd\u8a18\uff1a2011.03.24<\/strong>
\nChange Log : CodeIgniter User Guide<\/a>\u306b2.0.1\u304b\u3089\u3068\u3044\u3046\u8a18\u8f09\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n


\n

\u76ee\u6b21<\/p>