mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
Determine DEPLOYED only based on /etc/humbug-server.
The other zulip.net check was for a transition to using that file that has now completed. (imported from commit 991d9165515b5611865957255f9da7a69a75fd7b)
This commit is contained in:
@@ -47,8 +47,7 @@ EMAIL_PORT = 587
|
||||
# Whether we're running in a production environment. Note that DEPLOYED does
|
||||
# **not** mean hosted by us; customer sites are DEPLOYED and LOCALSERVER
|
||||
# and as such should not for example assume they are the main Zulip site.
|
||||
DEPLOYED = (('zulip.net' in platform.node())
|
||||
or os.path.exists('/etc/humbug-server'))
|
||||
DEPLOYED = os.path.exists('/etc/humbug-server')
|
||||
STAGING_DEPLOYED = (platform.node() == 'staging.zulip.net')
|
||||
TESTING_DEPLOYED = not not re.match(r'^test', platform.node())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user