use jobs to devise emails delivery
This commit is contained in:
@@ -27,15 +27,9 @@ module XStake
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults(6.1)
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
# in config/environments, which are processed later.
|
||||
#
|
||||
# config.time_zone = "Central Time (US & Canada)"
|
||||
# config.eager_load_paths << Rails.root.join("extras")
|
||||
|
||||
# Don't generate system test files.
|
||||
config.generators.system_tests = nil
|
||||
|
||||
config.active_job.queue_adapter = :sidekiq
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
require "sidekiq/web"
|
||||
|
||||
Rails.application.routes.draw do
|
||||
devise_for :users
|
||||
devise_for :admin_users
|
||||
@@ -16,9 +18,15 @@ Rails.application.routes.draw do
|
||||
|
||||
root to: "home#index"
|
||||
get "*all" => "home#index", constraints: lambda { |req|
|
||||
req.path.exclude?("playground") && req.path.exclude?("rails")
|
||||
["playground", "rails", "sidekiq"].filter do |path|
|
||||
req.path != path
|
||||
end.blank?
|
||||
}
|
||||
|
||||
post "/graphql", to: "graphql#execute"
|
||||
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql" if Rails.env.development?
|
||||
|
||||
if Rails.env.development?
|
||||
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql"
|
||||
mount Sidekiq::Web => "/sidekiq"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user