Fix EOSdash startup. (#394)
Some checks are pending
docker-build / platform-excludes (push) Waiting to run
docker-build / build (push) Blocked by required conditions
docker-build / merge (push) Blocked by required conditions
pre-commit / pre-commit (push) Waiting to run
Run Pytest on Pull Request / test (push) Waiting to run

Revert to EOSdash startup as a sub-process.
Add arguments to control the complete startup of both servers.
Also development reload can now be given as an argument.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2025-01-21 19:20:50 +01:00
committed by GitHub
parent e255e97141
commit 9c91a64c1b
5 changed files with 280 additions and 38 deletions

View File

@@ -84,12 +84,12 @@ clean: clean-docs
@echo "Deletion complete."
run:
@echo "Starting EOS server, please wait..."
.venv/bin/fastapi run --port 8503 src/akkudoktoreos/server/eos.py
@echo "Starting EOS production server, please wait..."
.venv/bin/python src/akkudoktoreos/server/eos.py
run-dev:
@echo "Starting EOS development server, please wait..."
.venv/bin/fastapi dev --port 8503 src/akkudoktoreos/server/eos.py
.venv/bin/python src/akkudoktoreos/server/eos.py --host localhost --port 8503 --reload true
# Target to setup tests.
test-setup: pip-dev