Skip to content

Instantly share code, notes, and snippets.

@smsohan
Last active December 22, 2015 00:59
Show Gist options
  • Save smsohan/6393675 to your computer and use it in GitHub Desktop.
Save smsohan/6393675 to your computer and use it in GitHub Desktop.
production.rb
#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
@tylermercier
Copy link

Cool, this is simple and I can keep these important values under source control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment