Created
July 5, 2014 16:57
-
-
Save ravinggenius/fc49d20f641504589d70 to your computer and use it in GitHub Desktop.
Rails project configuration (see https://github.com/jkassemi/conf_conf)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## config/initializers/conf_conf.rb | |
# load user-specific environment files | |
# (env* should be added to .gitignore) | |
[ | |
Rails.root + "env_#{Rails.env}.rb", | |
Rails.root + 'env.rb' | |
].each do |env_file| | |
require env_file if env_file.file? | |
end | |
# set defaults, typecast values and canonicalize configuration names | |
ConfConf.rails_configuration do | |
# Sets Rails.configuration.secret_key | |
config :secret_key | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['SECRET_KEY'] ||= 'secret key' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['SECRET_KEY'] ||= 'test secret key' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment