Repository: climate Updated Branches: refs/heads/master b83214e48 -> 98efecb31
CLIMATE-516 - Fix backend static file serving paths Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/efc00054 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/efc00054 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/efc00054 Branch: refs/heads/master Commit: efc000547729a120131ff5ea585f13f83bd248ff Parents: b83214e Author: Michael Joyce <[email protected]> Authored: Wed Sep 3 11:52:27 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Wed Sep 3 11:52:27 2014 -0700 ---------------------------------------------------------------------- ocw-ui/backend/run_webservices.py | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/efc00054/ocw-ui/backend/run_webservices.py ---------------------------------------------------------------------- diff --git a/ocw-ui/backend/run_webservices.py b/ocw-ui/backend/run_webservices.py index 4e50801..3f38e2c 100644 --- a/ocw-ui/backend/run_webservices.py +++ b/ocw-ui/backend/run_webservices.py @@ -31,27 +31,23 @@ app.mount('/processing/', processing_app) @app.route('/') @app.route('/index.html') def index(): - return static_file('index.html', root='./app') + return static_file('index.html', root='./frontend/app/') [email protected]('/js/:path#.+#') -def server_static(path): - return static_file(path, root='./app/js/') [email protected]('/bower_components/:path#.+#') +def serve_static(path): + return static_file(path, root='./frontend/bower_components/') [email protected]('/css/:path#.+#') -def server_static(path): - return static_file(path, root='./app/css/') [email protected]('/styles/:path#.+#') +def serve_static(path): + return static_file(path, root='./frontend/app/styles/') [email protected]('/img/:path#.+#') -def server_static(path): - return static_file(path, root='./app/img/') [email protected]('/scripts/:path#.+#') +def serve_static(path): + return static_file(path, root='./frontend/app/scripts/') [email protected]('/partials/:path#.+#') -def server_static(path): - return static_file(path, root='./app/partials/') - [email protected]('/font/:path#.+#') -def server_static(path): - return static_file(path, root='./app/font/') [email protected]('/views/:path#.+#') +def serve_static(path): + return static_file(path, root='./frontend/app/views/') @app.route('/static/eval_results/<file_path:path>') def get_eval_result_image(file_path):
