1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Tweak config to be env dependent.

This commit is contained in:
Dan Barber 2013-04-08 17:13:27 +01:00
parent d0adb987f9
commit 40c791be3d
4 changed files with 26 additions and 6 deletions

View File

@ -1,4 +1,15 @@
name: Dan Barber Photo
page_title: Dan Barber Photography
meta_description: ""
meta_keywords: ""
development: &default
name: Dan Barber Photography
page_title: Dan Barber Photography
meta_description: ""
meta_keywords: ""
ssl_hostname: secure.danbarberphoto.dev
test:
<<: *default
production:
<<: *default
ssl_hostname: danbarberphoto.herokuapp.com

View File

@ -40,5 +40,5 @@ DanBarberPhoto::Application.configure do
}
config.action_mailer.default_url_options = { :host => "danbarberphoto.dev" }
end

View File

@ -1,2 +1,2 @@
# Load the app config from the config.yml file.
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env].with_indifferent_access

View File

@ -0,0 +1,9 @@
Paperclip.interpolates(:s3_eu_url) do |att, style|
"#{att.s3_protocol}://s3-eu-west-1.amazonaws.com/#{att.bucket_name}/#{att.path(style)}"
end
module AWS
module S3
DEFAULT_HOST = "s3-eu-west-1.amazonaws.com"
end
end