Add start
This commit is contained in:
parent
7307ab029a
commit
50eabff6cd
9
Makefile
9
Makefile
@ -12,8 +12,13 @@ install:
|
||||
install-dev:
|
||||
$(VENV_DIR)/bin/pip install -r $(REQ_FILE) -r requirements-dev.txt
|
||||
|
||||
start: install
|
||||
$(VENV_DIR)/bin/python $(APP_NAME)
|
||||
start:
|
||||
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:
|
||||
docker-compose up -d db
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user