client: request folder lists from server

This commit is contained in:
geoffrey45
2021-12-15 15:20:12 +03:00
parent 803c813786
commit 701f61250e
14 changed files with 111 additions and 61 deletions
-1
View File
@@ -1 +0,0 @@
.vscode
+1
View File
@@ -14,6 +14,7 @@ requests = "*"
watchdog = "*"
progress = "*"
pillow = "*"
gunicorn = "*"
[dev-packages]
autopep8 = "*"
+9 -1
View File
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "99f472c203bd38494cccddd96820194910b1693da8ea6ed6d4b141895ff3002e"
"sha256": "ac6887caf42c4ea723d7e1e9fc8a94cb42b2cd815c447eb2afd0f35a73f314e1"
},
"pipfile-spec": 6,
"requires": {
@@ -55,6 +55,14 @@
"index": "pypi",
"version": "==3.0.10"
},
"gunicorn": {
"hashes": [
"sha256:9dcc4547dbb1cb284accfb15ab5667a0e5d1881cc443e0677b4882a4067a807e",
"sha256:e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"
],
"index": "pypi",
"version": "==20.1.0"
},
"idna": {
"hashes": [
"sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff",
-5
View File
@@ -10,8 +10,3 @@ def create_app():
app.register_blueprint(api.bp, url_prefix='/')
return app
if __name__ == '__main__':
app = create_app()
app.run(debug=True)
+6
View File
@@ -0,0 +1,6 @@
from app import create_app
if __name__ == '__main__':
app = create_app()
app.run(debug=True, threaded=True, host="127.0.0.1", port=9876)
+8 -4
View File
@@ -1,10 +1,14 @@
export PORT=8000
export music_dir="/home/cwilvx/Music/"
export FLASK_APP=app
export FLASK_DEBUG=1
export FLASK_RUN_PORT=8008
# export FLASK_APP=app
# export FLASK_DEBUG=1
# export FLASK_RUN_PORT=8008
# export music_dirs="['/home/cwilvx/Music/', '/home/cwilvx/FreezerMusic']"
flask run
# flask run
python manage.py
# gunicorn -b 0.0.0.0:9876 --workers=4 "wsgi:create_app()" --log-level=debug
+5
View File
@@ -0,0 +1,5 @@
from app import create_app
if __name__ == '__main__':
app = create_app()
app.run(debug=True, threaded=True)