mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
deployed => production
(imported from commit 2d7b0a7a73b0c84b32634a88af1e0d666139d4ff)
This commit is contained in:
@@ -38,7 +38,7 @@ ZULIP_STREAM_NAME = "asana"
|
|||||||
### OPTIONAL CONFIGURATION ###
|
### OPTIONAL CONFIGURATION ###
|
||||||
|
|
||||||
# Set to None for logging to stdout when testing, and to a file for
|
# Set to None for logging to stdout when testing, and to a file for
|
||||||
# logging when deployed.
|
# logging in production.
|
||||||
#LOG_FILE = "/var/tmp/zulip_asana.log"
|
#LOG_FILE = "/var/tmp/zulip_asana.log"
|
||||||
LOG_FILE = None
|
LOG_FILE = None
|
||||||
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ State and logs files
|
|||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
Do not write state and logs files inside the current working directory
|
Do not write state and logs files inside the current working directory
|
||||||
in the deployed environment. This will not work correctly, because the
|
in the production environment. This will not work correctly, because the
|
||||||
current working directory for the app changes every time we do a deploy.
|
current working directory for the app changes every time we do a deploy.
|
||||||
Instead, hardcode a path when settings.py -- see SERVER\_LOG\_PATH in
|
Instead, hardcode a path when settings.py -- see SERVER\_LOG\_PATH in
|
||||||
settings.py for an example.
|
settings.py for an example.
|
||||||
|
|||||||
@@ -90,6 +90,6 @@ Documentation
|
|||||||
+-------------+-----------------------------------------------+
|
+-------------+-----------------------------------------------+
|
||||||
|
|
||||||
You can consult the code for ``tools/build-enterprise-tarball`` to
|
You can consult the code for ``tools/build-enterprise-tarball`` to
|
||||||
check exactly which components are deployed --
|
check exactly which components are included in production --
|
||||||
since that is the tool that does the builds, it controls the
|
since that is the tool that does the builds, it controls the
|
||||||
distribution.
|
distribution.
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ hence the name.
|
|||||||
<a href="{{login_url}}">Log in</a>
|
<a href="{{login_url}}">Log in</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if deployed and not_enterprise %}
|
{% if zulip_com %}
|
||||||
{% elif only_sso %}
|
{% elif only_sso %}
|
||||||
<a href="{% url 'login-sso' %}">Log In</a>
|
<a href="{% url 'login-sso' %}">Log In</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -58,7 +58,7 @@ hence the name.
|
|||||||
{% if not only_sso %}
|
{% if not only_sso %}
|
||||||
<li><span class="little-bullet">·</span></li>
|
<li><span class="little-bullet">·</span></li>
|
||||||
<li>
|
<li>
|
||||||
{% if deployed and not_enterprise %}
|
{% if zulip_com %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'register' %}">Register</a>
|
<a href="{% url 'register' %}">Register</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ def add_settings(request):
|
|||||||
# will render even if the appropriate context is not provided
|
# will render even if the appropriate context is not provided
|
||||||
# to the template
|
# to the template
|
||||||
'not_enterprise': not settings.ENTERPRISE,
|
'not_enterprise': not settings.ENTERPRISE,
|
||||||
'deployed': settings.PRODUCTION,
|
'zulip_com': settings.ZULIP_COM,
|
||||||
'zulip_admin': settings.ZULIP_ADMINISTRATOR,
|
'zulip_admin': settings.ZULIP_ADMINISTRATOR,
|
||||||
'login_url': settings.HOME_NOT_LOGGED_IN,
|
'login_url': settings.HOME_NOT_LOGGED_IN,
|
||||||
'only_sso': settings.ONLY_SSO,
|
'only_sso': settings.ONLY_SSO,
|
||||||
|
|||||||
@@ -7,15 +7,15 @@ config_file = ConfigParser.RawConfigParser()
|
|||||||
config_file.read("/etc/zulip/zulip.conf")
|
config_file.read("/etc/zulip/zulip.conf")
|
||||||
|
|
||||||
# Whether we're running in a production environment. Note that PRODUCTION does
|
# Whether we're running in a production environment. Note that PRODUCTION does
|
||||||
# **not** mean hosted by us; customer sites are PRODUCTION and ENTERPRISE
|
# **not** mean hosted on Zulip.com; customer sites are PRODUCTION and ENTERPRISE
|
||||||
# and as such should not for example assume they are the main Zulip site.
|
# and as such should not assume they are the main Zulip site.
|
||||||
PRODUCTION = config_file.has_option('machine', 'deploy_type')
|
PRODUCTION = config_file.has_option('machine', 'deploy_type')
|
||||||
|
|
||||||
# The following flags are leftover from the various configurations of
|
# The following flags are left over from the various configurations of
|
||||||
# Zulip run by Zulip, Inc. We will eventually be able to get rid of
|
# Zulip run by Zulip, Inc. We will eventually be able to get rid of
|
||||||
# them and just have the PRODUCTION flag, but we need them for now.
|
# them and just have the PRODUCTION flag, but we need them for now.
|
||||||
ZULIP_COM_STAGING = PRODUCTION and config_file.get('machine', 'deploy_type') == 'staging'
|
ZULIP_COM_STAGING = PRODUCTION and config_file.get('machine', 'deploy_type') == 'staging'
|
||||||
|
ZULIP_COM = PRODUCTION and config_file.get('machine', 'deploy_type') == 'prod'
|
||||||
ENTERPRISE = PRODUCTION and config_file.get('machine', 'deploy_type') == 'enterprise'
|
ENTERPRISE = PRODUCTION and config_file.get('machine', 'deploy_type') == 'enterprise'
|
||||||
|
|
||||||
ZULIP_FRIENDS_LIST_ID = '84b2f3da6b'
|
ZULIP_FRIENDS_LIST_ID = '84b2f3da6b'
|
||||||
|
|||||||
Reference in New Issue
Block a user