Guest User

Untitled

a guest
Dec 11th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. local:
  2. service: Disk
  3. root: <%= Rails.root.join("storage") %>
  4.  
  5. Rails.application.configure do
  6. # Settings specified here will take precedence over those in config/application.rb.
  7.  
  8. # In the development environment your application's code is reloaded on
  9. # every request. This slows down response time but is perfect for development
  10. # since you don't have to restart the web server when you make code changes.
  11. config.cache_classes = false
  12.  
  13. # Do not eager load code on boot.
  14. config.eager_load = false
  15.  
  16. # Show full error reports.
  17. config.consider_all_requests_local = true
  18.  
  19. # Enable/disable caching. By default caching is disabled.
  20. if Rails.root.join('tmp/caching-dev.txt').exist?
  21. config.action_controller.perform_caching = true
  22.  
  23. config.cache_store = :memory_store
  24. config.public_file_server.headers = {
  25. 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
  26. }
  27. else
  28. config.action_controller.perform_caching = false
  29.  
  30. config.cache_store = :null_store
  31. end
  32.  
  33. # Don't care if the mailer can't send.
  34. config.action_mailer.raise_delivery_errors = false
  35.  
  36. config.action_mailer.perform_caching = false
  37.  
  38. # Print deprecation notices to the Rails logger.
  39. config.active_support.deprecation = :log
  40.  
  41. # Raise an error on page load if there are pending migrations.
  42. config.active_record.migration_error = :page_load
  43.  
  44. # Debug mode disables concatenation and preprocessing of assets.
  45. # This option may cause significant delays in view rendering with a large
  46. # number of complex assets.
  47. config.assets.debug = true
  48.  
  49. # Suppress logger output for asset requests.
  50. config.assets.quiet = true
  51.  
  52. config.active_storage.service = :local
  53.  
  54. # Raises error for missing translations
  55. # config.action_view.raise_on_missing_translations = true
  56.  
  57. # Use an evented file watcher to asynchronously detect changes in source code,
  58. # routes, locales, etc. This feature depends on the listen gem.
  59. # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
  60. end
  61.  
  62. default: &default
  63. adapter: sqlite3
  64. pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  65. timeout: 5000
  66.  
  67. development:
  68. <<: *default
  69. database: db/development.sqlite3
  70.  
  71. local:
  72. service: Disk
  73. root: <%= Rails.root.join("storage")%>
  74.  
  75. # Warning: The database defined as "test" will be erased and
  76. # re-generated from your development database when you run "rake".
  77. # Do not set this db to the same as development or production.
  78. test:
  79. <<: *default
  80. database: db/test.sqlite3
  81.  
  82. production:
  83. <<: *default
  84. database: db/production.sqlite3
Add Comment
Please, Sign In to add comment