From 6875307b2ac84cdb98ebb54a14a3c1ab3a3e6adb Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 26 Mar 2018 12:20:09 -0400 Subject: [PATCH] Drop static framework mapping for plugins; we're going to stage into the existing static paths instead since this method doesn't work in uwsgi --- lib/galaxy/webapps/galaxy/buildapp.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/buildapp.py b/lib/galaxy/webapps/galaxy/buildapp.py index f303fbfa92a..736dc8518a8 100644 --- a/lib/galaxy/webapps/galaxy/buildapp.py +++ b/lib/galaxy/webapps/galaxy/buildapp.py @@ -1056,17 +1056,6 @@ def wrap_in_middleware(app, global_conf, application_stack, **local_conf): def wrap_in_static(app, global_conf, plugin_frameworks=None, **local_conf): - from galaxy.web.framework.middleware.static import CacheableStaticURLParser as Static urlmap, cache_time = galaxy.web.framework.webapp.build_url_map(app, global_conf, local_conf) - # wrap any static dirs for plugins - plugin_frameworks = plugin_frameworks or [] - for framework in plugin_frameworks: - # invert control to each plugin for finding their own static dirs - for plugin in framework.plugins.values(): - if plugin.serves_static: - plugin_url = '/plugins/' + plugin.static_url - urlmap[(plugin_url)] = Static(plugin.static_path, cache_time) - log.debug('added url, path to static middleware: %s, %s', plugin_url, plugin.static_path) - # URL mapper becomes the root webapp return urlmap