2 Pettanr::Application.configure do
3 # Settings specified here will take precedence over those in config/application.rb
5 # Code is not reloaded between requests
6 config.cache_classes = true
8 # Full error reports are disabled and caching is turned on
9 config.consider_all_requests_local = false
10 config.action_controller.perform_caching = true
12 # Disable Rails's static asset server (Apache or nginx will already do this)
13 config.serve_static_assets = false
15 # Compress JavaScripts and CSS
16 config.assets.compress = true
18 # Don't fallback to assets pipeline if a precompiled asset is missed
19 config.assets.compile = false
21 # Generate digests for assets URLs
22 config.assets.digest = true
24 # Defaults to Rails.root.join("public/assets")
25 # config.assets.manifest = YOUR_PATH
27 # Specifies the header that your server uses for sending files
28 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
29 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
31 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
32 # config.force_ssl = true
34 # See everything in the log (default is :info)
35 # config.log_level = :debug
37 # Use a different logger for distributed setups
38 # config.logger = SyslogLogger.new
40 # Use a different cache store in production
41 # config.cache_store = :mem_cache_store
43 # Enable serving of images, stylesheets, and JavaScripts from an asset server
44 # config.action_controller.asset_host = "http://assets.example.com"
46 # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
47 # config.assets.precompile += %w( search.js )
49 # Disable delivery errors, bad email addresses will be ignored
50 # config.action_mailer.raise_delivery_errors = false
52 # Enable threaded mode
55 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
56 # the I18n.default_locale when a translation can not be found)
57 config.i18n.fallbacks = true
59 # Send deprecation notices to registered listeners
60 config.active_support.deprecation = :notify
65 y = YAML.load(open(Rails.root + 'config/aws.yaml').read)
66 AWS::S3::Base.establish_connection!(
67 :access_key_id => y["access_key_id"],
68 :secret_access_key => y["secret_access_key"]
71 PictureIO.setup do |config|
72 config.original_picture_io = PictureIO::S3Picture.new 'pettanr-original'
73 config.resource_picture_io = PictureIO::S3Picture.new 'pettanr-stable'
74 config.system_picture_io = PictureIO::S3Picture.new 'pettanr-system'