Skip to content
Snippets Groups Projects
Commit 0677be20 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Add Sidekiq Initializer and Config files

parent e42b29c9
No related branches found
No related tags found
No related merge requests found
sidekiq_configs = YAML.load_file(Rails.root.join('config').to_s.concat('/sidekiq.yml'))
config = sidekiq_configs.fetch(Rails.env)
redis_url = "redis://#{config['host']}:#{config['port']}/0"
Sidekiq.configure_server do |config|
config.redis = { :url => redis_url}
end
Sidekiq.configure_client do |config|
config.redis = { :url => redis_url}
end
#
# IMPORTANT: # NEVER USE "localhost". Instead, define the full hostname
#
development: &development
host: portalmecdev1.c3sl.ufpr.br
port: 6379
test:
host: portalmecdev1.c3sl.ufpr.br
port: 6379
production:
host: portalmecdev1.c3sl.ufpr.br
port: 6379
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment