Skip to content

Commit

Permalink
Allow failure of migrate.py scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterpanda63 committed Jan 22, 2025
1 parent 900beac commit f1f920f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sample-apps/django-mysql-gunicorn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install: clean
.PHONY: run
run: install
@echo "Running sample app django-mysql-gunicorn with Zen on port 8082"
poetry run python manage.py migrate
poetry run python manage.py migrate || true

AIKIDO_DEBUG=true AIKIDO_BLOCKING=true AIKIDO_TOKEN="AIK_secret_token" \
AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \
Expand All @@ -19,6 +19,6 @@ run: install
.PHONY: runZenDisabled
runZenDisabled: install
@echo "Running sample app django-mysql-gunicorn without Zen on port 8083"
poetry run python manage.py migrate
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
4 changes: 2 additions & 2 deletions sample-apps/django-mysql/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install: clean
.PHONY: run
run: install
@echo "Running sample app django-mysql with Zen on port 8080"
poetry run python manage.py migrate
poetry run python manage.py migrate || true

AIKIDO_DEBUG=true AIKIDO_BLOCKING=true AIKIDO_TOKEN="AIK_secret_token" \
AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \
Expand All @@ -19,6 +19,6 @@ run: install
.PHONY: runZenDisabled
runZenDisabled: install
@echo "Running sample app django-mysql without Zen on port 8081"
poetry run python manage.py migrate
poetry run python manage.py migrate || true
AIKIDO_DISABLE=1 \
poetry run python manage.py runserver 0.0.0.0:8081
4 changes: 2 additions & 2 deletions sample-apps/django-postgres-gunicorn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install: clean
.PHONY: run
run: install
@echo "Running sample app django-postgres-gunicorn with Zen on port 8100"
poetry run python manage.py migrate
poetry run python manage.py migrate || true

AIKIDO_DEBUG=true AIKIDO_BLOCKING=true AIKIDO_TOKEN="AIK_secret_token" \
AIKIDO_REALTIME_ENDPOINT="http://localhost:5000/" \
Expand All @@ -20,6 +20,6 @@ run: install
.PHONY: runZenDisabled
runZenDisabled: install
@echo "Running sample app django-postgres-gunicorn without Zen on port 8101"
poetry run python manage.py migrate
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

0 comments on commit f1f920f

Please sign in to comment.