SHARE
TWEET

Untitled

pablo_arribas_devela Jun 19th, 2017 245 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. NAME="{{ app_name }}_flower"
  4. APP="{{ app_name }}"
  5. DJANGODIR={{ app_directory }} # Django project directory
  6.  
  7. echo "Starting $NAME as `whoami`"
  8.  
  9. # Activate the virtual environment
  10. cd $DJANGODIR
  11. source {{ virtualenv_directory }}/bin/activate
  12. source {{ virtualenv_directory }}/bin/postactivate
  13. export PYTHONPATH=$DJANGODIR:$PYTHONPATH
  14.  
  15. exec {{ virtualenv_directory }}/bin/celery flower -A {{ app_name }} --address=127.0.0.1 --port=5555 --basic_auth={{celery_flower_user}}:{{celery_flower_password}} --url_prefix=flower
RAW Paste Data
Top