add file watcher

- disable double flask instances
- remove unused files
- play song by id (instead of from nginx)
This commit is contained in:
geoffrey45
2022-02-16 15:02:36 +03:00
parent 1802e02179
commit 1caef9d3a2
9 changed files with 60 additions and 169 deletions
+4 -3
View File
@@ -17,7 +17,8 @@ def create_app():
app.config.from_mapping(config)
cache.init_app(app)
from . import api
app.register_blueprint(api.bp, url_prefix='/')
with app.app_context():
from . import api
app.register_blueprint(api.bp, url_prefix='/')
return app
return app