{"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>
- 1<\/span> \u74b0\u5883\u3092\u8b58\u5225\u3059\u308b\u5b9a\u6570<\/a><\/li>
- 2<\/span> ENVIRONMENT\u5b9a\u6570\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u7b87\u6240<\/a><\/li>
- 3<\/span> \u30a8\u30e9\u30fc\u51fa\u529b\u306e\u5207\u308a\u5206\u3051<\/a><\/li>
- 4<\/span> \u74b0\u5883\u5225\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u8fbc<\/a><\/li>
- 5<\/span> \u30e9\u30a4\u30d6\u30e9\u30ea\u521d\u671f\u5316\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u74b0\u5883\u5225\u5207\u308a\u5206\u3051<\/a><\/li><\/ul><\/div>\n<\/p>\n
\u74b0\u5883\u3092\u8b58\u5225\u3059\u308b\u5b9a\u6570<\/span><\/h2>\n\/index.php<\/strong>\u306e\u4ee5\u4e0b\u304c\u307e\u3055\u306b\u305d\u308c\u306b\u5f53\u305f\u308a\u307e\u3059\u3002
\nENVIRONMENT\u5b9a\u6570\u306e\u5024\u3092development,testing, production\u306b\u66f8\u304d\u63db\u3048\u308c\u308b\u3053\u3068\u306b\u3088\u308a\u74b0\u5883\u5225\u306e\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u308b\u4ed5\u7d44\u307f\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\r\n\/*\r\n *---------------------------------------------------------------\r\n * APPLICATION ENVIRONMENT\r\n *---------------------------------------------------------------\r\n *\r\n * You can load different configurations depending on your\r\n * current environment. Setting the environment also influences\r\n * things like logging and error reporting.\r\n *\r\n * This can be set to anything, but default usage is:\r\n *\r\n * development\r\n * testing\r\n * production\r\n *\r\n * NOTE: If you change these, also change the error_reporting() code below\r\n *\r\n *\/\r\n define('ENVIRONMENT', 'development');\r\n<\/pre>\nENVIRONMENT\u5b9a\u6570\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u7b87\u6240<\/span><\/h2>\n\u30bd\u30fc\u30b9\u3092\u8ffd\u3046\u524d\u306e\u30e1\u30e2\u3068\u3057\u3066ENVIRONMENT\u3068\u3044\u3046\u6587\u5b57\u304c\u542b\u307e\u308c\u308b\u7b87\u6240\u3092\u51fa\u3057\u307e\u3057\u305f\u3002
\n\u3053\u306e\u4e2d\u304b\u3089\u6c17\u306b\u306a\u3063\u305f\u90e8\u5206\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n
\r\nfind .\/|xargs grep -n 'ENVIRONMENT'\r\n.\/index.php:5: * APPLICATION ENVIRONMENT\r\n.\/index.php:21:\tdefine('ENVIRONMENT', 'development');\r\n.\/index.php:31:\tswitch (ENVIRONMENT)\r\n.\/system\/core\/Config.php:88:\t\t\t$file_path = $path.'config\/'.ENVIRONMENT.'\/'.$file.EXT;\r\n.\/system\/core\/Config.php:98:\t\t\t\tlog_message('debug', 'Config for '.ENVIRONMENT.' environment is not found. Trying global config.');\r\n.\/system\/core\/Config.php:147:\t\t\tshow_error('The configuration file '.ENVIRONMENT.'\/'.$file.EXT.' and '.$file.EXT.' do not exist.');\r\n.\/system\/core\/Loader.php:885:\t\t\t\t\tif (file_exists($path .'config\/'.ENVIRONMENT.'\/'.strtolower($class).EXT))\r\n.\/system\/core\/Loader.php:887:\t\t\t\t\t\tinclude_once($path .'config\/'.ENVIRONMENT.'\/'.strtolower($class).EXT);\r\n.\/system\/core\/Loader.php:890:\t\t\t\t\telseif (file_exists($path .'config\/'.ENVIRONMENT.'\/'.ucfirst(strtolower($class)).EXT))\r\n.\/system\/core\/Loader.php:892:\t\t\t\t\t\tinclude_once($path .'config\/'.ENVIRONMENT.'\/'.ucfirst(strtolower($class)).EXT);\r\n.\/system\/core\/Common.php:211:\t\t$file_path = APPPATH.'config\/'.ENVIRONMENT.'\/config'.EXT;\r\n.\/system\/database\/DB.php:31:\t\t$file_path = APPPATH.'config\/'.ENVIRONMENT.'\/database'.EXT;\r\n.\/system\/database\/DB.php:35:\t\t\tlog_message('debug', 'Database config for '.ENVIRONMENT.' environment is not found. Trying global config.');\r\n<\/pre>\n\u30a8\u30e9\u30fc\u51fa\u529b\u306e\u5207\u308a\u5206\u3051<\/span><\/h2>\n\r\n\/*\r\n *---------------------------------------------------------------\r\n * ERROR REPORTING\r\n *---------------------------------------------------------------\r\n *\r\n * Different environments will require different levels of error reporting.\r\n * By default development will show errors but testing and live will hide them.\r\n *\/\r\n\r\n switch (ENVIRONMENT)\r\n {\r\n case 'development':\r\n error_reporting(E_ALL);\r\n break;\r\n\r\n case 'testing':\r\n case 'production':\r\n error_reporting(0);\r\n break;\r\n\r\n default:\r\n exit('The application environment is not set correctly.');\r\n }\r\n<\/pre>\n\u74b0\u5883\u5225\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u8fbc<\/span><\/h2>\n\u4e0b\u8a18\u306f\u3001system\/core\/Config.php<\/strong>\u306e\u629c\u7c8b\u3067\u3059\u3002<\/p>\n\r\n \/**\r\n * Load Config File\r\n *\r\n * @access public\r\n * @param string the config file name\r\n * @param boolean if configuration values should be loaded into their own section\r\n * @param boolean true if errors should just return false, false if an error message should be displayed\r\n * @return boolean if the file was loaded correctly\r\n *\/\r\n function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)\r\n {\r\n $file = ($file == '') ? 'config' : str_replace(EXT, '', $file);\r\n $loaded = FALSE;\r\n\r\n foreach ($this->_config_paths as $path)\r\n {\r\n $file_path = $path.'config\/'.ENVIRONMENT.'\/'.$file.EXT;\r\n\r\n if (in_array($file_path, $this->is_loaded, TRUE))\r\n {\r\n $loaded = TRUE;\r\n continue;\r\n }\r\n\r\n if ( ! file_exists($file_path))\r\n {\r\n log_message('debug', 'Config for '.ENVIRONMENT.' environment is not found. Trying global config.');\r\n $file_path = $path.'config\/'.$file.EXT;\r\n\r\n if ( ! file_exists($file_path))\r\n {\r\n continue;\r\n }\r\n }\r\n\r\n include($file_path);\r\n<\/pre>\n$this->load->config\u306a\u3069\u3067\u901a\u5e38\u306fapplication\/config\u914d\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u304c\u3001application\/config\/[ENVIRONMENT]\/\u306b\u8aad\u8fbc\u5bfe\u8c61\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308c\u3070\u3001\u8aad\u307f\u8fbc\u307f\u3001\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u3001\u901a\u5e38\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\u3001application\/config\/\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001database.php\u3084config.php\u306a\u3069\u4e88\u3081CodeIgniter\u306b\u542b\u307e\u308c\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306a\u304f\u3066\u3082\u3001\u72ec\u81ea\u306b\u5b9a\u7fa9\u3057\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u3082\u74b0\u5883\u5225\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306b\u914d\u7f6e\u3059\u308c\u3070\u305d\u308c\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u51fa\u6765\u307e\u3059\u3002<\/p>\n
\u4e0b\u8a18\u306f\u3001config.php\u3092\u8aad\u307f\u8fbc\u3080\u969b\u306e<\/p>\n
\r\n.\/\r\n`-- application\r\n |-- cache\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\u30e9\u30a4\u30d6\u30e9\u30ea\u521d\u671f\u5316\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u74b0\u5883\u5225\u5207\u308a\u5206\u3051<\/span><\/h2>\n$this->load->library\u3067\u8aad\u307f\u8fbc\u3080\u969b\u306b\u7b2c\u4e8c\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u5024\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u521d\u671f\u5316\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3059\u4e8b\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u4f55\u3082\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u3001application\/config\u914d\u4e0b\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u540c\u540d\u306ephp\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u5b9a\u7fa9\u3055\u308c\u305f$config\u5909\u6570\u3092\u521d\u671f\u5316\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u6e21\u3059\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30ec\u306b\u3064\u3044\u3066\u3082config\u3092\u8aad\u307f\u8fbc\u3080\u969b\u306e\u6761\u4ef6\u304c\u9069\u7528\u3055\u308c\u3001\u74b0\u5883\u5225\u306e\u8a2d\u5b9a\u5185\u5bb9\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u521d\u671f\u5316\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u6e21\u3059\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
\u4e0b\u8a18\u304c\u3001system\/core\/Loader.php\u306e\u8a72\u5f53\u90e8\u5206\u306e\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002CodeIgniter 2.0.1\u306e\u6642\u70b9\u3067\u306f\u3001Loader#_ci_init_class\u306fLoader#library\u30e1\u30bd\u30c3\u30c9\u7d4c\u7531\u3067\u306e\u307f\u547c\u3070\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n
\r\n \/**\r\n * Instantiates a class\r\n *\r\n * @access private\r\n * @param string\r\n * @param string\r\n * @param string an optional object name\r\n * @return null\r\n *\/\r\n function _ ci_init_class($class, $prefix = '', $config = FALSE, $object_name = NULL)\r\n {\r\n \/\/ Is there an associated config file for this class? Note: these should always be lowercase\r\n if ($config === NULL)\r\n {\r\n \/\/ Fetch the config paths containing any package paths\r\n $config_component = $this->_ci_get_component('config');\r\n\r\n if (is_array($config_component->_config_paths))\r\n {\r\n \/\/ Break on the first found file, thus package files\r\n \/\/ are not overridden by default paths\r\n foreach ($config_component->_config_paths as $path)\r\n {\r\n \/\/ We test for both uppercase and lowercase, for servers that\r\n \/\/ are case-sensitive with regard to file names. Check for environment\r\n \/\/ first, global next\r\n if (file_exists($path .'config\/'.ENVIRONMENT.'\/'.strtolower($class).EXT))\r\n {\r\n include_once($path .'config\/'.ENVIRONMENT.'\/'.strtolower($class).EXT);\r\n break;\r\n }\r\n elseif (file_exists($path .'config\/'.ENVIRONMENT.'\/'.ucfirst(strtolower($class)).EXT))\r\n {\r\n include_once($path .'config\/'.ENVIRONMENT.'\/'.ucfirst(strtolower($class)).EXT);\r\n break;\r\n }\r\n elseif (file_exists($path .'config\/'.strtolower($class).EXT))\r\n {\r\n include_once($path .'config\/'.strtolower($class).EXT);\r\n break;\r\n }\r\n elseif (file_exists($path .'config\/'.ucfirst(strtolower($class)).EXT))\r\n {\r\n include_once($path .'config\/'.ucfirst(strtolower($class)).EXT);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n<\/pre>\n\u30e6\u30fc\u30b6\u30ac\u30a4\u30c9\u3092\u8aad\u3093\u3067\u3044\u306a\u3044\u3060\u3051\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001CodeIgniter\u306e\u30bd\u30fc\u30b9\u306f\u3055\u307b\u3069\u5927\u304d\u304f\u306a\u304f\u3001\u8aad\u3080\u306e\u306b\u82e6\u52b4\u3057\u306a\u3044\u306e\u3067\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u662f\u975e\u4e00\u5ea6\u8aad\u3093\u3067\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"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 \u7d50\u8ad6\u304b\u3089\u8a00\u3048\u3070\u3001 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[850],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/5431"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=5431"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/5431\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=5431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=5431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=5431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}