mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
quick fixes to provision.py
(imported from commit c2726fee7634498b627dae99a7a87f76f5bc83fd)
This commit is contained in:
@@ -23,6 +23,9 @@ APT_DEPENDENCIES = {
|
||||
]
|
||||
}
|
||||
|
||||
VENV_PATH="/srv/zulip-venv"
|
||||
ZULIP_PATH="/srv/zulip"
|
||||
|
||||
# tsearch-extras is an extension to postgres's built-in full-text search.
|
||||
# TODO: use a real APT repository
|
||||
TSEARCH_URL_BASE = "https://dl.dropboxusercontent.com/u/283158365/zuliposs/"
|
||||
@@ -44,9 +47,6 @@ REPO_STOPWORDS_PATH = os.path.join(
|
||||
# TODO: support other architectures
|
||||
ARCH = "amd64"
|
||||
|
||||
VENV_PATH="/srv/zulip-venv"
|
||||
ZULIP_PATH="/srv/zulip"
|
||||
|
||||
with sh.sudo:
|
||||
sh.apt_get.update()
|
||||
|
||||
@@ -87,7 +87,7 @@ execfile(activate_this, dict(__file__=activate_this))
|
||||
|
||||
sh.pip.install(r="requirements.txt")
|
||||
with sh.sudo:
|
||||
sh.cp(TSEARCH_STOPWORDS_PATH, REPO_STOPWORDS_PATH)
|
||||
sh.cp(REPO_STOPWORDS_PATH, TSEARCH_STOPWORDS_PATH)
|
||||
|
||||
os.chdir(ZULIP_PATH)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user