Enable octopus
This commit is contained in:
parent
1a8b60cc98
commit
cd9e089631
|
@ -121,6 +121,15 @@ module Travis::Api
|
||||||
Travis::Database.connect
|
Travis::Database.connect
|
||||||
|
|
||||||
if Travis.env == 'production' || Travis.env == 'staging'
|
if Travis.env == 'production' || Travis.env == 'staging'
|
||||||
|
# Octopus checks for Rails.env, just hardcode enabled?
|
||||||
|
Octopus.instance_eval do
|
||||||
|
def enabled?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
ActiveRecord::Base.custom_octopus_connection = false
|
||||||
|
|
||||||
::Octopus.setup do |config|
|
::Octopus.setup do |config|
|
||||||
config.shards = { :follower => Travis.config.database_follower }
|
config.shards = { :follower => Travis.config.database_follower }
|
||||||
config.environments = ['production', 'staging']
|
config.environments = ['production', 'staging']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user