{"type":"rich","description":".envrc\u30d5\u30a1\u30a4\u30eb\u306b dotenv \u3068\u66f8\u304f\u3060\u3051\u3067\u3001\u73fe\u5728\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e .env \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3093\u3067\u304f\u308c\u308b\u7d20\u6575\u306a\u4ed5\u69d8\u3092\u767a\u898b\u3057\u305f\u3002\u3053\u308c\u3067direnv\u4f7f\u3044\u306a\u304c\u3089.env\u5f62\u5f0f\u3057\u304b\u53d7\u3051\u4ed8\u3051\u306a\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u3066\u3081\u3067\u305f\u3057\u3081\u3067\u305f\u3057\u3002 \u4ee5\u4e0b\u306f\u5177\u4f53\u7684\u306a\u4f8b\u3002 $ cat .env PORT=12345 ENV=local $ cat .envrc dotenv $ direnv allow direnv: loading .envrc direnv: export +ENV +PORT $ echo $ENV $PORT local 12345","provider_name":"Hatena Blog","url":"https://oinume.hatenablog.com/entry/loading-dotenv-file-by-direnv","image_url":null,"published":"2018-10-19 19:00:00","title":"direnv\u304b\u3089.env\u3092\u30ed\u30fc\u30c9\u3059\u308b","author_url":"https://blog.hatena.ne.jp/oinume/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Floading-dotenv-file-by-direnv\" title=\"direnv\u304b\u3089.env\u3092\u30ed\u30fc\u30c9\u3059\u308b - oinume journal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"oinume journal","width":"100%","categories":["Shell"],"author_name":"oinume","provider_url":"https://hatena.blog","height":"190","blog_url":"https://oinume.hatenablog.com/"}