Skip to content

Instantly share code, notes, and snippets.

@nowk
Created July 26, 2013 07:58
Show Gist options
  • Save nowk/6087070 to your computer and use it in GitHub Desktop.
Save nowk/6087070 to your computer and use it in GitHub Desktop.
require File.expand_path("../production.rb", __FILE__)
RailsAppName::Application.configure do
config.middleware.insert_after(::Rack::Lock, "::Rack::Auth::Basic", "Staging") do |u, p|
[u, p] == [ENV['STAGING_USERNAME'], ENV['STAGING_PASSWORD']]
end
config.action_mailer.default_url_options = { :host => 'some-app.herokuapp.com' }
config.action_mailer.asset_host = ""
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment