Allow for a custom hub server

This commit is contained in:
Kurtis Rainbolt-Greene 2017-01-06 14:54:38 -08:00 committed by GitHub
parent 8e7dcbac8f
commit 393f49f224
1 changed files with 1 additions and 1 deletions

View File

@ -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