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:
parent
d0adb987f9
commit
40c791be3d
@ -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
|
||||
|
||||
@ -40,5 +40,5 @@ DanBarberPhoto::Application.configure do
|
||||
}
|
||||
|
||||
config.action_mailer.default_url_options = { :host => "danbarberphoto.dev" }
|
||||
|
||||
|
||||
end
|
||||
|
||||
@ -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
|
||||
|
||||
9
config/initializers/paperclip.rb_
Normal file
9
config/initializers/paperclip.rb_
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user