Created
March 2, 2012 03:16
-
-
Save joshdholtz/1955297 to your computer and use it in GitHub Desktop.
Configuring in Padrino
This file contains hidden or 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
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