Skip to content

Commit

Permalink
Merge pull request #48 from baloise/main
Browse files Browse the repository at this point in the history
Update Makefile
  • Loading branch information
robbizbal authored Nov 26, 2024
2 parents e106bb3 + bd103fb commit 4d1addd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ dev: $(INSTALL_STAMP)

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

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

loadModels: $(INSTALL_STAMP)
$(POETRY) run python src/utils/ano_spacy.py loadModels
Expand Down

0 comments on commit 4d1addd

Please sign in to comment.