Enable octopus

This commit is contained in:
Piotr Sarnacki 2013-05-02 19:48:23 +02:00
parent 1a8b60cc98
commit cd9e089631

View File

@ -121,6 +121,15 @@ module Travis::Api
Travis::Database.connect
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|
config.shards = { :follower => Travis.config.database_follower }
config.environments = ['production', 'staging']