adds deploy secrets to staging and production envs

This commit is contained in:
rgarcia
2015-08-21 18:52:52 +02:00
parent 385da5185a
commit 6d14d07e5a
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
def deploysecret(key)
@deploy_secrets_yml ||= YAML.load_file('config/deploy-secrets.yml')['production']
@deploy_secrets_yml[key.to_s]
end
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.

View File

@@ -1,3 +1,8 @@
def deploysecret(key)
@deploy_secrets_yml ||= YAML.load_file('config/deploy-secrets.yml')['staging']
@deploy_secrets_yml[key.to_s]
end
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.