mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Replace SITE_ROOT with DEPLOY_ROOT
Whereas `SITE_ROOT` referred to the directory where settings.py is located, *all* actual uses of `SITE_ROOT` were joining it with `..` to get the root of the git checkout, a much more useful value. `DEPLOY_ROOT` now represents the root of the git checkout. (imported from commit 351437f9a5801e5c7c08a3a97619e863144e5cc8)
This commit is contained in:
@@ -1901,7 +1901,7 @@ def json_get_active_statuses(request, user_profile):
|
||||
js_source_map = None
|
||||
if not (settings.DEBUG or settings.TEST_SUITE):
|
||||
js_source_map = SourceMap(path.join(
|
||||
settings.SITE_ROOT, '../prod-static/source-map/app.js.map'))
|
||||
settings.DEPLOY_ROOT, 'prod-static/source-map/app.js.map'))
|
||||
|
||||
@authenticated_json_post_view
|
||||
@has_request_variables
|
||||
|
||||
Reference in New Issue
Block a user