mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
distgit: iad2 also runs rhel8 and thus python 3.6 so adjust the path to the static files
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
@@ -99,7 +99,7 @@ Alias /robots.txt /var/www/robots-src.txt
|
||||
# If it does, use it
|
||||
RewriteRule "^/static/(.*)" "/usr/share/pagure_dist_git/static/$1" [L]
|
||||
# Otherwise back out and use the default static folder/theme
|
||||
{% if env == "staging" %}
|
||||
{% if env == "staging" or datacenter == "iad2" %}
|
||||
RewriteRule "^/static/(.*)" "/usr/lib/python3.6/site-packages/pagure/static/$1" [L]
|
||||
{% else %}
|
||||
RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pagure/static/$1" [L]
|
||||
|
||||
Reference in New Issue
Block a user