| 1 | Rails.application.configure do |
| 2 | # Settings specified here will take precedence over those in config/application.rb. |
| 3 | |
| 4 | # In the development environment your application's code is reloaded on |
| 5 | # every request. This slows down response time but is perfect for development |
| 6 | # since you don't have to restart the web server when you make code changes. |
| 7 | config.cache_classes = false |
| 8 | |
| 9 | # Do not eager load code on boot. |
| 10 | config.eager_load = false |
| 11 | |
| 12 | # Show full error reports and disable caching. |
| 13 | config.consider_all_requests_local = true |
| 14 | config.action_controller.perform_caching = false |
| 15 | |
| 16 | # Don't care if the mailer can't send. |
| 17 | config.action_mailer.raise_delivery_errors = false |
| 18 | |
| 19 | # Print deprecation notices to the Rails logger. |
| 20 | config.active_support.deprecation = :log |
| 21 | |
| 22 | # Raise an error on page load if there are pending migrations. |
| 23 | config.active_record.migration_error = :page_load |
| 24 | |
| 25 | # Debug mode disables concatenation and preprocessing of assets. |
| 26 | # This option may cause significant delays in view rendering with a large |
| 27 | # number of complex assets. |
| 28 | config.assets.debug = true |
| 29 | |
| 30 | # Adds additional error checking when serving assets at runtime. |
| 31 | # Checks for improperly declared sprockets dependencies. |
| 32 | # Raises helpful error messages. |
| 33 | config.assets.raise_runtime_errors = true |
| 34 | |
| 35 | # Raises error for missing translations |
| 36 | # config.action_view.raise_on_missing_translations = true |
| 37 | |
| 38 | config.hosts = [ |
| 39 | 'localhost', |
| 40 | '0.0.0.0', |
| 41 | '127.0.0.1', # Puma |
| 42 | '65.21.240.91', |
| 43 | '65.21.240.91', |
| 44 | 'musik88.comlocal', |
| 45 | 'api.musik88.comlocal', |
| 46 | 'lvh.me', |
| 47 | 'api.lvh.me' |
| 48 | ] |
| 49 | |
| 50 | # Mailer |
| 51 | config.action_mailer.delivery_method = :letter_opener |
| 52 | config.action_mailer.perform_deliveries = true |
| 53 | config.action_mailer.default_url_options = { host: 'https://localhost:3001' } |
| 54 | # END |
| 55 | |
| 56 | # Storage |
| 57 | config.active_storage.service = :amazon_dev |
| 58 | # END |
| 59 | |
| 60 | # Background job |
| 61 | config.active_job.queue_adapter = :sidekiq |
| 62 | # END |
| 63 | end |