Trending repository
-
Updated
Jul 10, 2021 - Kotlin
Your favorite open source projects and the developers who make them happen. Listen in!
Open source projects built in or receiving significant contributions from India :india:
LogRocket lets you replay problems as if they happened in your own browser. Instead of guessing why errors happen, or asking users for screenshots and log dumps, you can replay sessions to quickly understand what went wrong.
LogRocket records pixel-perfect videos of user activity along with console logs, JavaScript errors, network requests, and browser metadata. It also has deep integrations with React, Redux, Angular and Vue.js to record application state.
Errors:
126. new Intl.NumberFormat is not supposed to get passed a single object as param. The first param must be a string and the second param can be an object.
135. Spelling error ('tis' should be 'this').
Suggestion:
86. Needs to be more explicit by calling the function in the example. Calling getName() with any falsy value would not set hasName to true with your correct answer.
.earthignore was never renamed to .earthlyignore, perhaps we should support either names (and raise an error if both exist).
GuardRails scans new code changes as they occur in your repositories. For pull requests, we will post comments whenever security issues are detected. For branches, you will be able to see reports in your dashboard.
背景和动机
我们不希望将一些敏感的内容提交到 git 仓库中,所以这些敏感内容我们会和提交到 git 仓库的配置文件分离。
我们将这些机密内容放在
dotenv运行时加载到环境变量或是直接存于环境变量中。除此之外,配置可能因为程序运行环境发生改变,而需要动态的进行配置。
所以我们希望 kratos 能够在配置文件中动态的识别环境变量占位符,并使用环境变量值替换配置的内容。
提议的方案
提案在配置文件中,通过占位符来替换环境变量