-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Lees
committed
Feb 20, 2025
1 parent
b0f5e47
commit d20262c
Showing
4 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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,4 +1,4 @@ | ||
web: python manage.py collectstatic --noinput && python manage.py migrate --noinput && ddtrace-run gunicorn config.wsgi --bind 0.0.0.0:$PORT | ||
app: python manage.py migrate --noinput && ddtrace-run gunicorn config.wsgi --bind 0.0.0.0:$PORT | ||
celery_worker: celery -A config worker -l DEBUG | ||
celery_beat: celery -A config beat -l info -S django | ||
app: ./entrypoints/app.sh | ||
celery_worker: ./entrypoints/celery-worker.sh | ||
celery_beat: ./entrypoints/celery-beat.sh |
This file contains 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,9 @@ | ||
#!/bin/sh | ||
|
||
python manage.py migrate --noinput | ||
|
||
if [[ "$COPILOT_ENVIRONMENT_NAME" == "dev" ]]; then | ||
ddtrace-run gunicorn config.wsgi --bind 0.0.0.0:$PORT | ||
else | ||
gunicorn config.wsgi --bind 0.0.0.0:$PORT | ||
fi |
This file contains 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,7 @@ | ||
#!/bin/sh | ||
|
||
if [[ "$COPILOT_ENVIRONMENT_NAME" == "dev" ]]; then | ||
ddtrace-run celery -A config beat -l info -S django | ||
else | ||
gunicorn celery -A config beat -l info -S django | ||
fi |
This file contains 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,7 @@ | ||
#!/bin/sh | ||
|
||
if [[ "$COPILOT_ENVIRONMENT_NAME" == "dev" ]]; then | ||
ddtrace-run celery -A config worker -l DEBUG | ||
else | ||
celery -A config worker -l DEBUG | ||
fi |