mirror of https://github.com/zulip/zulip.git
Update upload dir to var/uploads.
tools/provision.py: Create directory var/uploads. zproject/local_settings_template.py: Update Upload dir to var/uploads. zproject/dev_settings.py: Update upload dir to var/uploads.
This commit is contained in:
parent
d4021fc641
commit
4d2cb3754c
|
@ -29,6 +29,7 @@ PY3_VENV_PATH = "/srv/zulip-py3-venv"
|
|||
TRAVIS_NODE_PATH = os.path.join(os.environ['HOME'], 'node')
|
||||
VAR_DIR_PATH = os.path.join(ZULIP_PATH, 'var')
|
||||
LOG_DIR_PATH = os.path.join(VAR_DIR_PATH, 'log')
|
||||
UPLOAD_DIR_PATH = os.path.join(VAR_DIR_PATH, 'uploads')
|
||||
TEST_UPLOAD_DIR_PATH = os.path.join(VAR_DIR_PATH, 'test_uploads')
|
||||
COVERAGE_DIR_PATH = os.path.join(VAR_DIR_PATH, 'coverage')
|
||||
|
||||
|
@ -185,6 +186,8 @@ def main():
|
|||
|
||||
# create log directory `zulip/var/log`
|
||||
run(["mkdir", "-p", LOG_DIR_PATH])
|
||||
# create upload directory `var/uploads`
|
||||
run(["mkdir", "-p", UPLOAD_DIR_PATH])
|
||||
# create test upload directory `var/test_upload`
|
||||
run(["mkdir", "-p", TEST_UPLOAD_DIR_PATH])
|
||||
# create coverage directory`var/coverage`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# sample local_settings.py file, with a few exceptions.
|
||||
from .local_settings_template import *
|
||||
|
||||
LOCAL_UPLOADS_DIR = 'uploads'
|
||||
LOCAL_UPLOADS_DIR = 'var/uploads'
|
||||
EXTERNAL_HOST = 'localhost:9991'
|
||||
ALLOWED_HOSTS = ['localhost']
|
||||
AUTHENTICATION_BACKENDS = ('zproject.backends.DevAuthBackend',)
|
||||
|
|
|
@ -135,7 +135,7 @@ INLINE_IMAGE_PREVIEW = True
|
|||
# https://github.com/zulip/zulip/issues/291 for discussion of a better
|
||||
# solution that won't be automatically reverted by the Zulip upgrade
|
||||
# script), and then restart nginx.
|
||||
LOCAL_UPLOADS_DIR = "/home/zulip/uploads"
|
||||
LOCAL_UPLOADS_DIR = "/home/zulip/var/uploads"
|
||||
#S3_AUTH_UPLOADS_BUCKET = ""
|
||||
#S3_AVATAR_BUCKET = ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue