Created
December 6, 2019 10:28
-
-
Save thclark/fccc01b21eeb9d34e68c6052ed88f784 to your computer and use it in GitHub Desktop.
Running celery, flower and heroku locally for a django app
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
#!/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 |
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
#!/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// |
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
#!/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