瀏覽代碼

Remove config/secrets.yml

Rails no longer generates this file with sensitive secrets (default now is to do `secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>` in production).
pull/2051/head
Steve Hull 7 年之前
父節點
當前提交
cedd263b83
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. 4
    2
      Rails.gitignore

+ 4
- 2
Rails.gitignore 查看文件

@@ -12,9 +12,11 @@ capybara-*.html
rerun.txt
pickle-email-*.html

# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/secrets.yml

# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml

# dotenv
# TODO Comment out this rule if environment variables can be committed

Loading…
取消
儲存