Skip to content
Snippets Groups Projects
Commit e75ab859 authored by drebs's avatar drebs
Browse files

Add django static files to somewhere apache will find.

parent 4702da41
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,13 @@ COPY apache/apache-vhost.conf /var/lib/weblate/config/apache-vhost.conf ...@@ -75,7 +75,13 @@ COPY apache/apache-vhost.conf /var/lib/weblate/config/apache-vhost.conf
# TODO: The following is necessary because Weblate's STATIC_ROOT currently # TODO: The following is necessary because Weblate's STATIC_ROOT currently
# points to /var/www/weblate/static, and there's nothing that puts # points to /var/www/weblate/static, and there's nothing that puts
# Weblate stuff there. I need to understand why this is so. # Weblate stuff there. I need to understand why this is so.
RUN cp -r /usr/local/share/weblate/weblate/static/* /var/www/weblate/static/ RUN sudo -u weblate cp -r \
/usr/local/share/weblate/weblate/static/* \
/var/www/weblate/static/
# TODO: And this is necessary otherwise the admin page is ugly.
RUN sudo -u weblate cp -r \
/usr/share/python-django-common/django/contrib/admin/static/* \
/var/www/weblate/static/
# Some stuff need to be set up so the server can work succesfully (i.e. mysql, # Some stuff need to be set up so the server can work succesfully (i.e. mysql,
# rsyslog, etc). # rsyslog, etc).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment