Skip to content

Commit

Permalink
need to require rack/session for cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 28, 2025
1 parent fdb1725 commit fcc2ae2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions myapp/simple.ru
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# Easiest way to run Sidekiq::Web.
# Run with "bundle exec rackup simple.ru"

require "rack/session"
require "sidekiq/web"

# A Web process always runs as client, no need to configure server
Sidekiq.configure_client do |config|
config.redis = {url: "redis://localhost:6379/0", size: 1}
end

Sidekiq::Client.push("class" => "HardJob", "args" => [])

# In a multi-process deployment, all Web UI instances should share
# this secret key so they can all decode the encrypted browser cookies
# and provide a working session.
Expand Down

0 comments on commit fcc2ae2

Please sign in to comment.