Sort the files before we send them to the template renderer. Remove a stack symlink if present to avoid interfering with the volume.

This commit is contained in:
jakedt 2014-04-16 14:23:22 -04:00
parent da30cd86d5
commit 31aab09be5
2 changed files with 5 additions and 1 deletions

View file

@ -53,6 +53,7 @@ RUN cd grunt && grunt
RUN TEST=true venv/bin/python -m unittest discover
RUN rm -rf conf/stack
VOLUME ["/conf/stack", "/mnt/logs"]
EXPOSE 443 80

View file

@ -136,6 +136,10 @@ def render_page_template(name, **kwargs):
library_scripts = list_files('lib', 'js')
main_scripts = list_files('js', 'js')
cache_buster = 'debugging'
file_lists = [library_styles, main_styles, library_scripts, main_scripts]
for file_list in file_lists:
file_list.sort()
else:
library_styles = []
main_styles = ['dist/quay-frontend.css']
@ -143,7 +147,6 @@ def render_page_template(name, **kwargs):
main_scripts = ['dist/quay-frontend.min.js']
cache_buster = random_string()
resp = make_response(render_template(name, route_data=json.dumps(get_route_data()),
main_styles=main_styles,
library_styles=library_styles,