Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Created March 2, 2012 03:16
Show Gist options
  • Save joshdholtz/1955297 to your computer and use it in GitHub Desktop.
Save joshdholtz/1955297 to your computer and use it in GitHub Desktop.
Configuring in Padrino
class App < Padrino::Application
register Padrino::Rendering
register Padrino::Mailer
register Padrino::Helpers
layout :layout
configure :production do
puts "In production mode"
Stripe.api_key = Constants::STRIPE_LIVE_KEY
set :postmark_key, Constants::POSTMARK_LIVE_KEY
end
configure :staging do
puts "In staging mode"
Stripe.api_key = Constants::STRIPE_TEST_KEY
set :postmark_key, Constants::POSTMARK_TEST_KEY
end
configure :development do
puts "In development mode"
Stripe.api_key = Constants::STRIPE_TEST_KEY
set :postmark_key, Constants::POSTMARK_TEST_KEY
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment