only add the shards info if in prod mode
This commit is contained in:
parent
d72f6ca02d
commit
69b8dff382
|
@ -120,9 +120,10 @@ module Travis::Api
|
||||||
Travis::Amqp.config = Travis.config.amqp
|
Travis::Amqp.config = Travis.config.amqp
|
||||||
Travis::Database.connect
|
Travis::Database.connect
|
||||||
|
|
||||||
# only used in Production by default
|
if Travis.env == 'production'
|
||||||
::Octopus.setup do |config|
|
::Octopus.setup do |config|
|
||||||
config.shards = { :follower => Travis.config.database_follower }
|
config.shards = { :follower => Travis.config.database_follower }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Travis::Features.start
|
Travis::Features.start
|
||||||
|
|
Loading…
Reference in New Issue
Block a user