mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 06:04:35 +08:00
Fixed some RoR 5.1 default settings. [SCI-1413]
This commit is contained in:
parent
f56e972ce6
commit
843116f645
6 changed files with 10 additions and 14 deletions
|
@ -19,9 +19,6 @@ module Scinote
|
||||||
|
|
||||||
config.active_job.queue_adapter = :delayed_job
|
config.active_job.queue_adapter = :delayed_job
|
||||||
|
|
||||||
# Do not swallow errors in after_commit/after_rollback callbacks.
|
|
||||||
# config.active_record.raise_in_transactional_callbacks = true
|
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
config.log_formatter = proc do |severity, datetime, progname, msg|
|
config.log_formatter = proc do |severity, datetime, progname, msg|
|
||||||
"[#{datetime}] #{severity}: #{msg}\n"
|
"[#{datetime}] #{severity}: #{msg}\n"
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
development:
|
development:
|
||||||
adapter: async
|
adapter: postgresql
|
||||||
|
|
||||||
test:
|
test:
|
||||||
adapter: async
|
adapter: postgresql
|
||||||
|
|
||||||
production:
|
production:
|
||||||
adapter: redis
|
adapter: postgresql
|
||||||
url: redis://localhost:6379/1
|
|
||||||
channel_prefix: scinote_production
|
|
||||||
|
|
|
@ -93,8 +93,9 @@ Rails.application.configure do
|
||||||
# routes, locales, etc. This feature depends on the listen gem.
|
# routes, locales, etc. This feature depends on the listen gem.
|
||||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||||
|
|
||||||
# Suppress logger output for asset requests.
|
# Suppress logger output for asset requests. By default logger output is
|
||||||
config.assets.quiet = true
|
# enabled.
|
||||||
|
# config.assets.quiet = true
|
||||||
|
|
||||||
# Enable/disable caching. By default caching is disabled.
|
# Enable/disable caching. By default caching is disabled.
|
||||||
if Rails.root.join('tmp/caching-dev.txt').exist?
|
if Rails.root.join('tmp/caching-dev.txt').exist?
|
||||||
|
|
|
@ -130,8 +130,8 @@ Rails.application.configure do
|
||||||
# config.cache_store = :mem_cache_store
|
# config.cache_store = :mem_cache_store
|
||||||
|
|
||||||
# Use a real queuing backend for Active Job (and separate queues per environment)
|
# Use a real queuing backend for Active Job (and separate queues per environment)
|
||||||
# config.active_job.queue_adapter = :resque
|
config.active_job.queue_adapter = :delayed_job
|
||||||
# config.active_job.queue_name_prefix = "scinote_#{Rails.env}"
|
config.active_job.queue_name_prefix = "scinote_#{Rails.env}"
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
|
||||||
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
||||||
|
|
||||||
# Make `form_with` generate non-remote forms.
|
# Make `form_with` generate non-remote forms.
|
||||||
Rails.application.config.action_view.form_with_generates_remote_forms = false
|
# Rails.application.config.action_view.form_with_generates_remote_forms = false
|
||||||
|
|
||||||
# Unknown asset fallback will return the path passed in when the given
|
# Unknown asset fallback will return the path passed in when the given
|
||||||
# asset is not present in the asset pipeline.
|
# asset is not present in the asset pipeline.
|
||||||
|
|
|
@ -50,7 +50,7 @@ common: &common
|
||||||
# You can use `rake secret` to generate a secure secret key.
|
# You can use `rake secret` to generate a secure secret key.
|
||||||
# ======================================================================
|
# ======================================================================
|
||||||
|
|
||||||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
# secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
||||||
|
|
||||||
# ======================================================================
|
# ======================================================================
|
||||||
# Write any potential environment-specific secrets here.
|
# Write any potential environment-specific secrets here.
|
||||||
|
|
Loading…
Add table
Reference in a new issue