Fix img assets missing in docker
This commit is contained in:
parent
3bbe0f20ea
commit
3aa2264be4
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
|
@ -264,7 +264,7 @@ class ThumbnailView(object):
|
|||
if thumb_path:
|
||||
return cherrypy.lib.static.serve_file(thumb_path, "image/jpeg")
|
||||
else:
|
||||
return cherrypy.lib.static.serve_file(os.path.join(APPROOT, "styles/dist/unknown.svg"), "image/svg+xml")
|
||||
return cherrypy.lib.static.serve_file(os.path.join(APPROOT, "assets/img/unknown.svg"), "image/svg+xml")
|
||||
|
||||
|
||||
@cherrypy.popargs('item_type', 'uuid')
|
||||
|
|
|
@ -22,8 +22,8 @@ def get_engine_options(uri):
|
|||
return {}
|
||||
|
||||
|
||||
def get_db_engine(uri):
|
||||
engine = sqlalchemy.create_engine(uri, **get_engine_options(uri))
|
||||
def get_db_engine(uri, debug=False):
|
||||
engine = sqlalchemy.create_engine(uri, **get_engine_options(uri), echo=debug)
|
||||
Base.metadata.create_all(engine)
|
||||
return engine
|
||||
|
||||
|
|
Loading…
Reference in New Issue