-
Notifications
You must be signed in to change notification settings - Fork 11
Add health check for apps and a common.mk #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1ab2e28
Create a health_check.sh script in sample-apps/
bitterpanda63 f6e46e7
Refactor benchmark workflows to use dynamic ports from Makefiles
bitterpanda63 97ea45b
Update more sample apps to use common.mk
bitterpanda63 0b988e3
Fix up starlette-postgres-uvicorn
bitterpanda63 ce42ff8
Fix up flask-mysql
bitterpanda63 595f825
Cleanup get_ports.sh mess
bitterpanda63 378e5bf
Add a make health-check
bitterpanda63 6aae6fe
Benchmarks check app health with makeifle
bitterpanda63 0f7c7ce
Fixes for sample app makefiles
bitterpanda63 a106b95
Fix remaining make files to use common.mk
bitterpanda63 13b547f
Apply suggestions from code review
bitterpanda63 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Common Makefile for all sample apps | ||
| # This file defines standard ports, AIKIDO environment variables, and common targets | ||
|
|
||
| # Standard ports for benchmarking | ||
| # PORT: Main application port (with firewall) | ||
| # PORT_DISABLED: Application port without firewall | ||
| # These can be overridden in individual Makefiles if needed | ||
|
|
||
| PORT ?= 8080 | ||
| PORT_DISABLED ?= 8081 | ||
|
|
||
| # AIKIDO environment variables | ||
| AIKIDO_ENV_COMMON = \ | ||
| AIKIDO_DEBUG=true \ | ||
| AIKIDO_BLOCK=true \ | ||
| AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_DISABLE=0 | ||
|
|
||
| AIKIDO_ENV_BENCHMARK = \ | ||
| AIKIDO_DEBUG=false \ | ||
| AIKIDO_BLOCK=true \ | ||
| AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" \ | ||
| DONT_ADD_MIDDLEWARE=1 | ||
|
|
||
| AIKIDO_ENV_DISABLED = \ | ||
| AIKIDO_DISABLE=1 | ||
|
|
||
| # Common target definitions | ||
| .PHONY: install | ||
| install: | ||
| poetry install --quiet | ||
|
|
||
| .PHONY: health-check | ||
| health-check: | ||
| ../scripts/health_check.sh $(PORT) | ||
| ../scripts/health_check.sh $(PORT_DISABLED) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,19 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install --quiet | ||
| include ../common.mk | ||
|
|
||
| PORT = 8082 | ||
| PORT_DISABLED = 8083 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app django-mysql-gunicorn with Zen on port 8082" | ||
| @echo "Running sample app django-mysql-gunicorn with Zen on port $(PORT)" | ||
| poetry run python manage.py migrate || true | ||
|
|
||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run ddtrace-run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:8082 sample-django-mysql-gunicorn-app.wsgi | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run ddtrace-run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:$(PORT) sample-django-mysql-gunicorn-app.wsgi | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app django-mysql-gunicorn without Zen on port 8083" | ||
| @echo "Running sample app django-mysql-gunicorn without Zen on port $(PORT_DISABLED)" | ||
| poetry run python manage.py migrate || true | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run ddtrace-run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:8083 sample-django-mysql-gunicorn-app.wsgi | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run ddtrace-run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:$(PORT_DISABLED) sample-django-mysql-gunicorn-app.wsgi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,19 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install --quiet | ||
| include ../common.mk | ||
|
|
||
| PORT = 8080 | ||
| PORT_DISABLED = 8081 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app django-mysql with Zen on port 8080" | ||
| @echo "Running sample app django-mysql with Zen on port $(PORT)" | ||
| poetry run python manage.py migrate || true | ||
|
|
||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run python manage.py runserver 0.0.0.0:8080 | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run python manage.py runserver 0.0.0.0:$(PORT) | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app django-mysql without Zen on port 8081" | ||
| @echo "Running sample app django-mysql without Zen on port $(PORT_DISABLED)" | ||
| poetry run python manage.py migrate || true | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run python manage.py runserver 0.0.0.0:8081 | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run python manage.py runserver 0.0.0.0:$(PORT_DISABLED) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,19 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install --quiet | ||
| include ../common.mk | ||
|
|
||
| PORT = 8100 | ||
| PORT_DISABLED = 8101 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app django-postgres-gunicorn with Zen on port 8100" | ||
| @echo "Running sample app django-postgres-gunicorn with Zen on port $(PORT)" | ||
| poetry run python manage.py migrate || true | ||
|
|
||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run ddtrace-run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:8100 sample-django-postgres-gunicorn-app.wsgi | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run ddtrace-run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:$(PORT) sample-django-postgres-gunicorn-app.wsgi | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app django-postgres-gunicorn without Zen on port 8101" | ||
| @echo "Running sample app django-postgres-gunicorn without Zen on port $(PORT_DISABLED)" | ||
| poetry run python manage.py migrate || true | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:8101 sample-django-postgres-gunicorn-app.wsgi | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run gunicorn -c gunicorn_config.py --workers 4 --threads 2 --log-level debug --access-logfile '-' --error-logfile '-' --bind 0.0.0.0:$(PORT_DISABLED) sample-django-postgres-gunicorn-app.wsgi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install | ||
| include ../common.mk | ||
|
|
||
| PORT = 8106 | ||
| PORT_DISABLED = 8107 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app fastapi-postgres-uvicorn with Zen on port 8106" | ||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run uvicorn app:app --host 0.0.0.0 --port 8106 --workers 4 | ||
| @echo "Running sample app fastapi-postgres-uvicorn with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run uvicorn app:app --host 0.0.0.0 --port $(PORT) --workers 4 | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app fastapi-postgres-uvicorn without Zen on port 8107" | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run uvicorn app:app --host 0.0.0.0 --port 8107 --workers 4 | ||
| @echo "Running sample app fastapi-postgres-uvicorn without Zen on port $(PORT_DISABLED)" | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run uvicorn app:app --host 0.0.0.0 --port $(PORT_DISABLED) --workers 4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install --quiet | ||
| include ../common.mk | ||
|
|
||
| PORT = 8106 | ||
| PORT_DISABLED = 8107 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app flask-clickhouse-uwsgi with Zen on port 8106" | ||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| @echo "Running sample app flask-clickhouse-uwsgi with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run uwsgi --ini uwsgi.ini | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app flask-clickhouse-uwsgi without Zen on port 8107" | ||
| AIKIDO_DISABLE=1 \ | ||
| @echo "Running sample app flask-clickhouse-uwsgi without Zen on port $(PORT_DISABLED)" | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run uwsgi --ini uwsgi2.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install | ||
| include ../common.mk | ||
|
|
||
| PORT = 8094 | ||
| PORT_DISABLED = 8095 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app flask-mongo with Zen on port 8094" | ||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run ddtrace-run flask --app app.py run --host=0.0.0.0 --port=8094 --no-reload | ||
| @echo "Running sample app flask-mongo with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run ddtrace-run flask --app app.py run --host=0.0.0.0 --port=$(PORT) --no-reload | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app flask-mongo without Zen on port 8095" | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8095 --no-reload | ||
| @echo "Running sample app flask-mongo without Zen on port $(PORT_DISABLED)" | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT_DISABLED) --no-reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install | ||
| include ../common.mk | ||
|
|
||
| PORT = 8104 | ||
| PORT_DISABLED = 8105 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app flask-mssql with Zen on port 8104" | ||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8104 --no-reload | ||
| @echo "Running sample app flask-mssql with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT) --no-reload | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app flask-mssql without Zen on port 8105" | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8105 --no-reload | ||
| @echo "Running sample app flask-mssql without Zen on port $(PORT_DISABLED)" | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT_DISABLED) --no-reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,22 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install --quiet | ||
| include ../common.mk | ||
|
|
||
| PORT = 8088 | ||
| PORT_DISABLED = 8089 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app flask-mysql-uwsgi with Zen on port 8088" | ||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| @echo "Running sample app flask-mysql-uwsgi with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run uwsgi --ini uwsgi.ini | ||
|
|
||
| .PHONY: runBenchmark | ||
| runBenchmark: install | ||
| @echo "Running sample app flask-mysql-uwsgi with Zen on port 8088" | ||
| AIKIDO_DEBUG=false AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| @echo "Running sample app flask-mysql-uwsgi with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_BENCHMARK) \ | ||
| poetry run uwsgi --single-interpreter --ini uwsgi.ini | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app flask-mysql-uwsgi without Zen on port 8089" | ||
| AIKIDO_DISABLE=1 \ | ||
| @echo "Running sample app flask-mysql-uwsgi without Zen on port $(PORT_DISABLED)" | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run uwsgi --single-interpreter --ini uwsgi2.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,22 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install | ||
| include ../common.mk | ||
|
|
||
| PORT = 8086 | ||
| PORT_DISABLED = 8087 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app flask-mysql with Zen on port 8086" | ||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8086 --no-reload | ||
| @echo "Running sample app flask-mysql with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT) --no-reload | ||
|
|
||
| .PHONY: runBenchmark | ||
| runBenchmark: install | ||
| @echo "Running sample app django-mysql with Zen (benchmark mode) on port 8102" | ||
| AIKIDO_DEBUG=false AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| DONT_ADD_MIDDLEWARE=1 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8086 --no-reload | ||
| @echo "Running sample app flask-mysql with Zen (benchmark mode) on port $(PORT)" | ||
| $(AIKIDO_ENV_BENCHMARK) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT) --no-reload | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app flask-mysql without Zen on port 8087" | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8087 --no-reload | ||
| @echo "Running sample app flask-mysql without Zen on port $(PORT_DISABLED)" | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT_DISABLED) --no-reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| .PHONY: install | ||
| install: | ||
| poetry install | ||
| include ../common.mk | ||
|
|
||
| PORT = 8108 | ||
| PORT_DISABLED = 8109 | ||
|
|
||
| .PHONY: run | ||
| run: install | ||
| @echo "Running sample app flask-openai with Zen on port 8108" | ||
| AIKIDO_DEBUG=true AIKIDO_BLOCK=true AIKIDO_TOKEN="AIK_secret_token" \ | ||
| AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \ | ||
| AIKIDO_ENDPOINT="http://localhost:5000/" AIKIDO_DISABLE=0 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8108 --no-reload | ||
| @echo "Running sample app flask-openai with Zen on port $(PORT)" | ||
| $(AIKIDO_ENV_COMMON) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT) --no-reload | ||
|
|
||
| .PHONY: runZenDisabled | ||
| runZenDisabled: install | ||
| @echo "Running sample app flask-openai without Zen on port 8109" | ||
| AIKIDO_DISABLE=1 \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=8109 --no-reload | ||
| @echo "Running sample app flask-openai without Zen on port $(PORT_DISABLED)" | ||
| $(AIKIDO_ENV_DISABLED) \ | ||
| poetry run flask --app app.py run --host=0.0.0.0 --port=$(PORT_DISABLED) --no-reload | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.