distgit: Apply Kevin's fix to get the static files to show

Basically, we have two places where we apply the rewrite rule
allowing to access static files either in pagure-dist-git
or in the regular pagure.
We had fixed the first one earlier and this commit fixes the
second one.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-05-23 21:30:31 +02:00
parent bb6f7217d3
commit 2d1de54c89

View file

@ -99,7 +99,11 @@ 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" %}
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]
{% endif %}
</VirtualHost>