官术网_书友最值得收藏!

Configuration files

First, we have a config directory in the root of our Phoenix application. This is where all of the application and web service configuration files will live. We typically have the config.exs, dev.exs, test.exs, prod.secret.exs, and prod.exs files by default with our Phoenix application. The first file, config.exs, is a file that stores generic configuration details that should be the same across all run-time environments for your application, whether they're testing, development, or production environments. The next few (dev.exs, test.exs, and prod.exs) are your environment-specific configuration files. Finally, we have our prod.secret.exs, which is auto-generated by Phoenix but not checked into source control by default. This file should never be checked into the source control for your application, as this is where sensitive information should live, such as API keys, secret keys, and database passwords. If this is ever checked into source control then it would be in the history of your application, which would be a pretty significant security concern for anyone having to maintain your Phoenix application!

主站蜘蛛池模板: 昭平县| 汕尾市| 浦江县| 定日县| 曲周县| 朔州市| 南靖县| 通化县| 收藏| 木里| 盐源县| 佛山市| 台中市| 宝兴县| 张家界市| 通海县| 武冈市| 德昌县| 桦甸市| 古丈县| 太谷县| 永川市| 丰城市| 芷江| 金堂县| 永清县| 大兴区| 惠州市| 道孚县| 客服| 丽水市| 富源县| 陕西省| 合阳县| 读书| 交口县| 武城县| 宜州市| 恩平市| 古田县| 衡阳市|