camelot-project / frontend

The frontend: The web-facing server software for CAMELOT
BSD 3-Clause "New" or "Revised" License
2 stars 14 forks source link

Bad path to table? #103

Closed e-koch closed 9 years ago

e-koch commented 9 years ago

screen shot 2015-05-30 at 11 20 27 pm

Here's what the path is: http://camelot-project.herokuapp.com/static/jstables/static/jstables/Output_Table_20150531052709429032.ipac?1433050031223

"static/jstables" is getting appended twice somewhere.

keflavich commented 9 years ago

this is a problem with serving quasi-static files from flask. I solved it, but the solution didn't stick and I don't understand why. My solution was this:

@app.route('/query/static/jstables/<path:path>')
@app.route('/static/jstables/<path:path>')
def send_js(path):
    return send_from_directory('/static/jstables/', path)

which worked when I tested it the first time, but it definitely doesn't work now. I'm open to suggestions - right now I have no ideas.

keflavich commented 9 years ago

This problem seems to be gone in the current master

keflavich commented 9 years ago

OK, and it's back! Hooray!

keflavich commented 9 years ago

As far as I could tell, this fixed the bug locally. But it doesn't make any sense.