Skip to content

Commit

Permalink
Add sucker_punch for background jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdromi committed Feb 12, 2024
1 parent 5990860 commit 0b8e8f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
# Raise error when a before_action's only/except options reference missing actions
config.action_controller.raise_on_missing_callback_actions = true

# config.active_job.queue_adapter = :sucker_punch
config.active_job.queue_adapter = :sucker_punch

config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
end
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false

# config.active_job.queue_adapter = :sucker_punch
config.active_job.queue_adapter = :sucker_punch

# Enable DNS rebinding protection and other `Host` header attacks.
# config.hosts = [
Expand Down

0 comments on commit 0b8e8f6

Please sign in to comment.