databio / bedhost

API and UI for BEDbase
http://api.bedbase.org
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

don't require local data #33

Closed nsheff closed 4 years ago

nsheff commented 4 years ago
Traceback (most recent call last):
  File "/usr/local/bin/bedhost", line 8, in <module>
    sys.exit(main())
  File "/app/bedhost/main.py", line 496, in main
    StaticFiles(directory=bbc[CFG_PATH_KEY][CFG_BEDSTAT_OUTPUT_KEY]),
  File "/usr/local/lib/python3.8/site-packages/starlette/staticfiles.py", line 57, in __init__
    raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory '/data/outputs/bedstat_output' does not exist

the data should be able to be served from a remote source. Also, if it's not present, it shouldn't fail catastrophically.

stolarczyk commented 4 years ago

resolved in https://github.com/databio/bedhost/commit/33c12dcf90f7ce222cb4a6168f7e0f39c9e5394f and https://github.com/databio/bedhost/commit/6f1a2580c153bf051b0ba9c8dfbbaeffa1cbb90a