API & Client - use flask to serve js files

This commit is contained in:
Sam
2020-09-16 13:48:15 +02:00
parent 428c9c513a
commit f626559e5e
44 changed files with 343 additions and 9 deletions

View File

@ -79,10 +79,7 @@ recalculate:
$(FLASK) recalculate
run:
$(MAKE) P="run-server run-workers run-client" make-p
run-client:
serve -s fittrackee_client/build -l 3000 >> serve.log 2>&1
$(MAKE) P="run-server run-workers" make-p
run-server:
cd fittrackee_api && $(GUNICORN) -b 127.0.0.1:5000 "fittrackee_api:create_app()" --error-logfile ../gunicorn.log