我应该将我的application.yml添加到gitignore吗?

时间:2016-02-19 18:13:13

标签: ruby-on-rails

我有我的application.yml 我有:

development: &defaults
  S3_ACCESS_KEY: "AKIfdgdfgfdgfdgdfgdfgdfgdfgdfgfdgdfg"
  S3_SECRET_KEY: "fdgdflkgkldflkglfdklgfdgd"

test:
  <<: *defaults

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
  <<: *defaults

我应该将它添加到git ignore还是not?

1 个答案:

答案 0 :(得分:0)

你一定要把它添加到你的.gitignore中。你永远不想发布你的访问密钥,因为人们会抓取github寻找它们然后使用它们,这最终会花费你很多钱!如果您不小心发布了密钥,请务必立即更改

相关问题