diff --git a/Gemfile b/Gemfile index 9b8c76f..9ba1a35 100644 --- a/Gemfile +++ b/Gemfile @@ -17,6 +17,9 @@ gem "sassc-rails" gem 'haml-rails' gem 'html2haml' gem 'devise' +gem 'devise-async' +gem "sucker_punch", "~> 3.1" + gem 'carrierwave', '>= 3.0.0.beta', '< 4.0' gem 'kaminari' diff --git a/Gemfile.lock b/Gemfile.lock index 5ee2068..c66abcc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -137,6 +137,9 @@ GEM railties (>= 4.1.0) responders warden (~> 1.2.3) + devise-async (1.0.0) + activejob (>= 5.0) + devise (>= 4.0) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) erubi (1.12.0) @@ -373,6 +376,8 @@ GEM activesupport (>= 5.2) sprockets (>= 3.0.0) ssrf_filter (1.1.1) + sucker_punch (3.1.0) + concurrent-ruby (~> 1.0) tailwindcss-rails (2.0.21-x86_64-linux) railties (>= 6.0.0) temple (0.10.0) @@ -434,6 +439,7 @@ DEPENDENCIES carrierwave (>= 3.0.0.beta, < 4.0) debug devise + devise-async guard guard-minitest haml-rails @@ -453,6 +459,7 @@ DEPENDENCIES simple_form (= 5.1.0) simple_form_tailwind_css sprockets-rails + sucker_punch (~> 3.1) tailwindcss-rails thredded (~> 1.0) web-console diff --git a/config/application.rb b/config/application.rb index 31ce270..5b4ed09 100644 --- a/config/application.rb +++ b/config/application.rb @@ -27,6 +27,8 @@ module HubfeenixFi config.hosts << "www.hubfeenix.fi" #production config.hosts << "hubfeenix.fi" #production + config.active_job.queue_adapter = :sucker_punch + # Configuration for the application, engines, and railties goes here. # # These settings can be overridden in specific environments using the files diff --git a/config/initializers/sucker_punch.rb b/config/initializers/sucker_punch.rb new file mode 100644 index 0000000..755f0e8 --- /dev/null +++ b/config/initializers/sucker_punch.rb @@ -0,0 +1 @@ +require 'sucker_punch/async_syntax'