Skip to content

Commit

Permalink
Add run_file_uploader to the prod entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Feb 11, 2025
1 parent cf9bd5a commit 81d48b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
extends:
service: base
volumes:
- ../workspaces:/workspaces
- ../workdir:/workdir
# this compose file is only used for production-like testing - so we
# don't worry about potentially leaking dummy env vars into actual prod
env_file: ../.env
Expand Down
4 changes: 3 additions & 1 deletion docker/entrypoints/prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

set -euo pipefail

export PYTHONUNBUFFERED=TRUE # make sure the log output lines don't clobber each other.

./manage.py check --deploy
./manage.py migrate

exec "$@"
./manage.py run_file_uploader & exec "$@"

0 comments on commit 81d48b1

Please sign in to comment.