Skip to content

Commit 4d1addd

Browse files
authored
Merge pull request #48 from baloise/main
Update Makefile
2 parents e106bb3 + bd103fb commit 4d1addd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ dev: $(INSTALL_STAMP)
6262

6363
# Run target to execute the application for production
6464
run: $(INSTALL_STAMP)
65-
# $(POETRY) run gunicorn src.app:app --workers 4 --worker-class uvicorn.workers.UvicornWorker
6665
@echo "default mode"
67-
$(POETRY) run uvicorn src.app:app --host 0.0.0.0 --port 8000
66+
$(POETRY) run uvicorn src.app:app --host 0.0.0.0 --port 8000 --workers 4
6867

6968
runos: $(INSTALL_STAMP)
7069
@echo "openshift mode"
71-
/home/anon/.local/bin/poetry run uvicorn src.app:app --host 0.0.0.0 --port 8000
70+
/home/anon/.local/bin/poetry run uvicorn src.app:app --host 0.0.0.0 --port 8000 --workers 4
7271

7372
loadModels: $(INSTALL_STAMP)
7473
$(POETRY) run python src/utils/ano_spacy.py loadModels

0 commit comments

Comments
 (0)