Added project status and asynchronous initialization
This commit is contained in:
+14
-4
@@ -18,15 +18,25 @@ default: &default
|
||||
host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
database: subtle_storm_development
|
||||
primary:
|
||||
<<: *default
|
||||
database: subtle_storm_development
|
||||
queue:
|
||||
<<: *default
|
||||
database: subtle_storm_development_queue
|
||||
migrations_paths: db/queue_migrate
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
<<: *default
|
||||
database: subtle_storm_test
|
||||
primary:
|
||||
<<: *default
|
||||
database: subtle_storm_test
|
||||
queue:
|
||||
<<: *default
|
||||
database: subtle_storm_test_queue
|
||||
migrations_paths: db/queue_migrate
|
||||
|
||||
# As with config/credentials.yml, you never want to store sensitive information,
|
||||
# like your database password, in your source code. If your source code is
|
||||
|
||||
@@ -55,6 +55,11 @@ Rails.application.configure do
|
||||
# Highlight code that enqueued background job in logs.
|
||||
config.active_job.verbose_enqueue_logs = true
|
||||
|
||||
# Replace the default in-process and non-durable queuing backend for Active Job.
|
||||
config.active_job.queue_adapter = :solid_queue
|
||||
config.solid_queue.connects_to = { database: { writing: :queue } }
|
||||
config.solid_queue.logger = ActiveSupport::Logger.new(STDOUT)
|
||||
|
||||
# Raises error for missing translations.
|
||||
# config.i18n.raise_on_missing_translations = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user