-
Notifications
You must be signed in to change notification settings - Fork 2
How 2 install
MikhailShel edited this page Apr 2, 2018
·
4 revisions
This framework requires redis, python 3.5 and some kind of web server to run. once you get all the dependecies you need to update config/config.json with proper port and ip address for redis and then execute following things to get things going (I use gunicorn to run the server but you can use anything else). So I'm flow to start the framework is:
- virtualenv -p python3 venvbot
- source venvbot/bin/activate
- pip install -r requirements.txt
- pip install gunicorn
- ./venvbot/bin/gunicorn PyChatBot:app --reload -w 2 -b :8002 > log.txt &
that will run web service on port 8002 then I use nginx as a reverse proxy to point it to HTTPS(since facebook and slack only work with secure connections)