Add start
This commit is contained in:
parent
7307ab029a
commit
50eabff6cd
9
Makefile
9
Makefile
@ -12,8 +12,13 @@ install:
|
|||||||
install-dev:
|
install-dev:
|
||||||
$(VENV_DIR)/bin/pip install -r $(REQ_FILE) -r requirements-dev.txt
|
$(VENV_DIR)/bin/pip install -r $(REQ_FILE) -r requirements-dev.txt
|
||||||
|
|
||||||
start: install
|
start:
|
||||||
$(VENV_DIR)/bin/python $(APP_NAME)
|
docker compose up -d db
|
||||||
|
@echo "Waiting for the database to be ready..."
|
||||||
|
@while ! nc -z localhost 5432; do \
|
||||||
|
sleep 1; \
|
||||||
|
done
|
||||||
|
uvicorn backend.app.main:app --reload --host 0.0.0.0 --port 8080 --reload-include backend/app
|
||||||
|
|
||||||
start-db:
|
start-db:
|
||||||
docker-compose up -d db
|
docker-compose up -d db
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user