Skip to content

Latest commit

 

History

History

bot_example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

SETUP

  • $ sudo apt install redis
  • $ sudo systemctl enable redis-server
  • $ python3 -m venv venv
  • $ source venv/bin/activate
  • $ pip3 install -r requirements.txt

USAGE

  • start celery worker
    • $ source venv/bin/activate
    • celery -A bot_example.celery worker
  • start web app
    • $ source venv/bin/activate
    • FLASK_APP=bot_example.py flask run --host=0.0.0.0 (not to be used in production)