Skip to content

Commit

Permalink
celery-entrypoint.sh and .env (AWS) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mpnowacki-reef committed Jan 18, 2025
1 parent fc11fc8 commit 4564a69
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ tail -f /var/log/celery-*.log &

# check celery status periodically to exit if it crashed
while true; do
sleep 30
celery -A {{cookiecutter.django_project_name}} status > /dev/null 2>&1 || exit 1
sleep 120
echo "Checking celery status"
celery -A project status -t 30 > /dev/null 2>&1 || exit 1
echo "Celery status OK"
done
9 changes: 9 additions & 0 deletions {{cookiecutter.repostory_name}}/devops/tf/main/files/env
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ POSTGRES_USER=${database_user}
POSTGRES_PASSWORD=${database_password}
DATABASE_URL=${database_connection_string}

EMAIL_BACKEND=django.core.mail.backends.filebased.EmailBackend
EMAIL_FILE_PATH=/tmp/email
EMAIL_HOST=smtp.sendgrid.net
EMAIL_PORT=587
EMAIL_USE_TLS=1
EMAIL_HOST_USER=apikey
EMAIL_HOST_PASSWORD=
DEFAULT_FROM_EMAIL=

SENTRY_DSN=
HTTPS_REDIRECT=n
HTTPS_PROXY_HEADER=X_SCHEME
Expand Down

0 comments on commit 4564a69

Please sign in to comment.