GeoRSS aggregator and Layar augmented reality server
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

production.rb 2.8 KiB

il y a 12 ans
il y a 11 ans
il y a 12 ans
il y a 12 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Apollo::Application.configure do
  2. # Settings specified here will take precedence over those in config/application.rb
  3. config.action_mailer.default_url_options = { :host => 'tal-apollo-staging.herokuapp.com' }
  4. # SendGrid config for Heroku Cedar stack
  5. ActionMailer::Base.smtp_settings = {
  6. :address => 'smtp.sendgrid.net',
  7. :port => '587',
  8. :authentication => :plain,
  9. :user_name => ENV['SENDGRID_USERNAME'],
  10. :password => ENV['SENDGRID_PASSWORD'],
  11. :domain => 'heroku.com',
  12. :enable_starttls_auto => true
  13. }
  14. # Code is not reloaded between requests
  15. config.cache_classes = true
  16. # Full error reports are disabled and caching is turned on
  17. config.consider_all_requests_local = false
  18. config.action_controller.perform_caching = true
  19. # Disable Rails's static asset server (Apache or nginx will already do this)
  20. config.serve_static_assets = false
  21. # Compress JavaScripts and CSS
  22. config.assets.compress = true
  23. # Don't fallback to assets pipeline if a precompiled asset is missed
  24. config.assets.compile = false
  25. # Generate digests for assets URLs
  26. config.assets.digest = true
  27. # Defaults to nil and saved in location specified by config.assets.prefix
  28. # config.assets.manifest = YOUR_PATH
  29. # Specifies the header that your server uses for sending files
  30. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
  31. # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
  32. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  33. # config.force_ssl = true
  34. # See everything in the log (default is :info)
  35. # config.log_level = :debug
  36. # Prepend all log lines with the following tags
  37. # config.log_tags = [ :subdomain, :uuid ]
  38. # Use a different logger for distributed setups
  39. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
  40. # Use a different cache store in production
  41. # config.cache_store = :mem_cache_store
  42. # Enable serving of images, stylesheets, and JavaScripts from an asset server
  43. # config.action_controller.asset_host = "http://assets.example.com"
  44. # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
  45. # config.assets.precompile += %w( search.js )
  46. # Disable delivery errors, bad email addresses will be ignored
  47. # config.action_mailer.raise_delivery_errors = false
  48. # Enable threaded mode
  49. # config.threadsafe!
  50. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  51. # the I18n.default_locale when a translation can not be found)
  52. config.i18n.fallbacks = true
  53. # Send deprecation notices to registered listeners
  54. config.active_support.deprecation = :notify
  55. # Workless
  56. config.after_initialize do
  57. Delayed::Job.scaler = :heroku_cedar
  58. end
  59. end