Yu-Gi-Oh! Deck Building and Card Inventory Management web interface written in Common Lisp, utilizing HTMX.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

22 строки
693B

  1. # Easiest way to run Sidekiq::Web.
  2. # Run with "bundle exec rackup simple.ru"
  3. require 'sidekiq'
  4. # A Web process always runs as client, no need to configure server
  5. Sidekiq.configure_client do |config|
  6. config.redis = { :size => 1, url: 'redis://localhost:6379', namespace: 'psychiq' }
  7. end
  8. # In a multi-process deployment, all Web UI instances should share
  9. # this secret key so they can all decode the encrypted browser cookies
  10. # and provide a working session.
  11. # Rails does this in /config/initializers/secret_token.rb
  12. secret_key = SecureRandom.hex(32)
  13. use Rack::Session::Cookie, secret: secret_key, same_site: true, max_age: 86400
  14. require "sidekiq/web"
  15. map '/psy' do
  16. run Sidekiq::Web
  17. end