Skip to content

Instantly share code, notes, and snippets.

@thclark
Created December 6, 2019 10:28
Show Gist options
  • Save thclark/fccc01b21eeb9d34e68c6052ed88f784 to your computer and use it in GitHub Desktop.
Save thclark/fccc01b21eeb9d34e68c6052ed88f784 to your computer and use it in GitHub Desktop.
Running celery, flower and heroku locally for a django app
#!/usr/bin/env bash
export PYTHONUNBUFFERED=1
export DJANGO_READ_DOT_ENV_FILE=1
export DJANGO_SETTINGS_MODULE=backend.settings.local
heroku local -p 8000
#!/usr/bin/env bash
# Note this doesn't quite work but is nearly there!
pyenv activate windquest
export PYTHONUNBUFFERED=1
export DJANGO_READ_DOT_ENV_FILE=1
export DJANGO_SETTINGS_MODULE=backend.settings.local
export KOMBU_FERNET_KEY=YOURFERNETKEY=
celery worker --events --app=backend.app.celery.app --loglevel=debug --broker=redis://localhost:6379//
#!/usr/bin/env bash
pyenv activate windquest
export PYTHONUNBUFFERED=1
export DJANGO_READ_DOT_ENV_FILE=1
export DJANGO_SETTINGS_MODULE=backend.settings.local
export KOMBU_FERNET_KEY=YOURFERNETKEY=
celery flower --app=backend.app.celery.app --address=127.0.0.1 --port=5555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment