Use flask run rather than custom manage command

This commit is contained in:
Alexis Métaireau 2021-11-28 23:37:39 +01:00
parent 05ac991a55
commit ef9f841e11

View file

@ -38,7 +38,7 @@ update: remove-install-stamp install ## Update the dependencies
.PHONY: serve .PHONY: serve
serve: install ## Run the ihatemoney server serve: install ## Run the ihatemoney server
@echo 'Running ihatemoney on http://localhost:5000' @echo 'Running ihatemoney on http://localhost:5000'
$(PYTHON) -m ihatemoney.manage run FLASK_DEBUG=1 FLASK_ENV=development FLASK_APP=ihatemoney.wsgi $(VENV)/bin/flask run --host=0.0.0.0
.PHONY: test .PHONY: test
test: install-dev ## Run the tests test: install-dev ## Run the tests