mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 07:22:45 +08:00
Merge pull request #4640 from krainboltgreene/patch-1
Allow for a custom hub server
This commit is contained in:
commit
c2a85440b6
|
@ -42,7 +42,7 @@ module DiscourseHub
|
||||||
|
|
||||||
def self.hub_base_url
|
def self.hub_base_url
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
'https://api.discourse.org/api'
|
ENV['HUB_BASE_URL'] || 'https://api.discourse.org/api'
|
||||||
else
|
else
|
||||||
ENV['HUB_BASE_URL'] || 'http://local.hub:3000/api'
|
ENV['HUB_BASE_URL'] || 'http://local.hub:3000/api'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user