Use redis for sidekiq from config also on staging
This commit is contained in:
parent
8708849646
commit
0eadcfedbd
|
@ -112,11 +112,13 @@ module Travis::Api
|
||||||
Travis::Database.connect
|
Travis::Database.connect
|
||||||
Travis::Features.start
|
Travis::Features.start
|
||||||
|
|
||||||
if Travis.env == 'production'
|
if Travis.env == 'production' || Travis.env == 'staging'
|
||||||
Sidekiq.configure_client do |config|
|
Sidekiq.configure_client do |config|
|
||||||
config.redis = Travis.config.redis.merge(size: 1, namespace: Travis.config.sidekiq.namespace)
|
config.redis = Travis.config.redis.merge(size: 1, namespace: Travis.config.sidekiq.namespace)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if Travis.env == 'production'
|
||||||
Raven.configure do |config|
|
Raven.configure do |config|
|
||||||
config.dsn = Travis.config.sentry.dsn
|
config.dsn = Travis.config.sentry.dsn
|
||||||
end if Travis.config.sentry
|
end if Travis.config.sentry
|
||||||
|
|
Loading…
Reference in New Issue
Block a user