mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Introduce development env sample config
This commit is contained in:
parent
ba11be40ad
commit
2f9199fce7
1 changed files with 8 additions and 10 deletions
|
@ -13,12 +13,11 @@ Rails.application.configure do
|
||||||
config.consider_all_requests_local = true
|
config.consider_all_requests_local = true
|
||||||
config.action_controller.perform_caching = false
|
config.action_controller.perform_caching = false
|
||||||
|
|
||||||
# Don't care if the mailer can't send.
|
|
||||||
config.action_mailer.raise_delivery_errors = false
|
|
||||||
|
|
||||||
# Print deprecation notices to the Rails logger.
|
# Print deprecation notices to the Rails logger.
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
||||||
|
config.logger = ActiveSupport::Logger.new(nil)
|
||||||
|
|
||||||
# Raise an error on page load if there are pending migrations.
|
# Raise an error on page load if there are pending migrations.
|
||||||
config.active_record.migration_error = :page_load
|
config.active_record.migration_error = :page_load
|
||||||
|
|
||||||
|
@ -32,13 +31,12 @@ Rails.application.configure do
|
||||||
# Raises helpful error messages.
|
# Raises helpful error messages.
|
||||||
config.assets.raise_runtime_errors = true
|
config.assets.raise_runtime_errors = true
|
||||||
|
|
||||||
# Raises error for missing translations
|
config.action_view.raise_on_missing_translations = true
|
||||||
# config.action_view.raise_on_missing_translations = true
|
|
||||||
|
|
||||||
# config.log_tags = [:subdomain, :uuid, :remote_ip]
|
|
||||||
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
|
|
||||||
|
|
||||||
|
config.action_mailer.raise_delivery_errors = false
|
||||||
config.action_mailer.default_url_options = { host: 'localhost:8081' }
|
config.action_mailer.default_url_options = { host: 'localhost:8081' }
|
||||||
|
config.action_mailer.delivery_method = :smtp
|
||||||
|
config.action_mailer.smtp_settings = { address: 'localhost', port: 1025 } # MailCatcher
|
||||||
|
|
||||||
# for finding database optimization
|
# for finding database optimization
|
||||||
config.after_initialize do
|
config.after_initialize do
|
Loading…
Add table
Add a link
Reference in a new issue