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:
Jessica McKellar
2013-10-16 13:08:17 -04:00
parent f7386c3f58
commit d4e2cdd09e

View File

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