mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fixes for changes to sidekiq
This commit is contained in:
parent
a157cda92a
commit
161dfb70f3
2 changed files with 8 additions and 3 deletions
2
Gemfile
2
Gemfile
|
@ -2,8 +2,8 @@ source 'https://rubygems.org'
|
|||
|
||||
gem 'sinatra'
|
||||
gem 'redis'
|
||||
gem 'redis-namespace'
|
||||
gem 'sequel'
|
||||
gem 'redis-namespace'
|
||||
gem 'bcrypt'
|
||||
gem 'sinatra-flash', require: 'sinatra/flash'
|
||||
gem 'sinatra-xsendfile', require: 'sinatra/xsendfile'
|
||||
|
|
|
@ -40,6 +40,7 @@ DB = Sequel.connect $config['database'], sslmode: 'disable', max_connections: $c
|
|||
DB.extension :pagination
|
||||
DB.extension :auto_literal_strings
|
||||
Sequel.split_symbols = true
|
||||
Sidekiq.strict_args!(false)
|
||||
|
||||
require 'will_paginate/sequel'
|
||||
|
||||
|
@ -54,9 +55,13 @@ end
|
|||
=end
|
||||
# :nocov:
|
||||
|
||||
Sidekiq::Logging.logger = nil unless ENV['RACK_ENV'] == 'production'
|
||||
unless ENV['RACK_ENV'] == 'production'
|
||||
Sidekiq.configure_server do |config|
|
||||
config.logger = nil
|
||||
end
|
||||
end
|
||||
|
||||
sidekiq_redis_config = {namespace: 'neocitiesworker'}
|
||||
sidekiq_redis_config = {}
|
||||
sidekiq_redis_config[:url] = $config['sidekiq_url'] if $config['sidekiq_url']
|
||||
|
||||
# :nocov:
|
||||
|
|
Loading…
Add table
Reference in a new issue