swhors / flask_gunicorn_celery_example

simple example for flask using gunicorn and celery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask_gunicorn_celery_example


usage

  1. pre work
  • pip install -r requirement.txt
  1. flask and celery
  • celery -A tcelery.celery_app worker
  • python main.py
  1. flask and gunicorn
  • gunicorn unicorn:app -b 0.0.0.0:5000 -w [worker node count]
  1. Notice
  • Befor pip install, you must intall library like below: sudo apt install libpq-dev

About

simple example for flask using gunicorn and celery.


Languages

Language:Python 100.0%