Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,17 @@ django-collect-static:
poetry run python manage.py collectstatic --noinput

.PHONY: serve
serve:
serve: docker-up
poetry run flagsmith start --reload api


.PHONY: run-task-processor
run-task-processor: docker-up
poetry run flagsmith start --reload --bind 0.0.0.0:8001 task-processor

.PHONY: serve-with-task-processor
serve-with-task-processor: TASK_RUN_METHOD=TASK_PROCESSOR
serve-with-task-processor:
make -j2 serve run-task-processor

.PHONY: generate-ld-client-types
generate-ld-client-types:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/deployment/hosting/locally-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ found in the following section entitled 'Databases'.
cd api
make install
make django-migrate
make serve
make serve-with-task-processor # Or `make serve` for API + synchronous tasks (limited functionality)
```

You can now visit `http://<your-server-domain:8000>/api/v1/users/config/init/` to create an initial Superuser and
Expand Down
Loading