Last active
December 22, 2015 00:59
-
-
Save smsohan/6393675 to your computer and use it in GitHub Desktop.
production.rb
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
#put all the shared bits in: config/environments/productionable.rb | |
YourApp::Application.configure do | |
config.assets.compile = false | |
config.serve_static_assets = false | |
end | |
#and only environment specific bits at config/environments/production.rb | |
require_relative 'productionable' | |
YourApp::Application.configure do | |
config.google_api_key = 'super_secret_key' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool, this is simple and I can keep these important values under source control.