From 393f49f224b9a1689562844f408ecdcc32d0b36f Mon Sep 17 00:00:00 2001 From: Kurtis Rainbolt-Greene Date: Fri, 6 Jan 2017 14:54:38 -0800 Subject: [PATCH] Allow for a custom hub server --- lib/discourse_hub.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_hub.rb b/lib/discourse_hub.rb index e174cf065a5..3176902c849 100644 --- a/lib/discourse_hub.rb +++ b/lib/discourse_hub.rb @@ -42,7 +42,7 @@ module DiscourseHub def self.hub_base_url if Rails.env.production? - 'https://api.discourse.org/api' + ENV['HUB_BASE_URL'] || 'https://api.discourse.org/api' else ENV['HUB_BASE_URL'] || 'http://local.hub:3000/api' end