Skip to content

Commit

Permalink
add confugration
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarsh24 committed Feb 6, 2024
1 parent 530308b commit 94bab2c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Application < Rails::Application
config.action_mailer.default_url_options[:host] = host
Rails.application.routes.default_url_options[:host] = host
config.active_job.queue_adapter = :solid_queue
config.solid_queue.silence_polling = true

config.assets.paths << Rails.root.join("node_modules")
ActiveRecord::Tasks::DatabaseTasks.fixtures_path = Rails.root.join("spec/fixtures").to_s
Expand Down
4 changes: 1 addition & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

Rails.application.routes.draw do
mount ActionCable.server => "/cable"
authenticate :user, ->(user) { user.admin? } do
mount MissionControl::Jobs::Engine, at: "/jobs"
end
mount MissionControl::Jobs::Engine, at: "/jobs" # move to admin once there is authentication
get "sitemaps/*path", to: "shimmer/sitemaps#show"
get "offline", to: "pages#offline"
resources :files, only: :show, controller: "shimmer/files"
Expand Down
36 changes: 18 additions & 18 deletions config/solid_queue.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#default: &default
# dispatchers:
# - polling_interval: 1
# batch_size: 500
# workers:
# - queues: "*"
# threads: 5
# processes: 1
# polling_interval: 0.1
#
# development:
# <<: *default
#
# test:
# <<: *default
#
# production:
# <<: *default
default: &default
dispatchers:
- polling_interval: 1
batch_size: 500
workers:
- queues: "*"
threads: 5
processes: 1
polling_interval: 0.1

development:
<<: *default

test:
<<: *default

production:
<<: *default

0 comments on commit 94bab2c

Please sign in to comment.