Installation & Setup:
- Install the virtual environment
python3 -m venv geeekgodbotenv
source geeekgodbotenv/bin/activate
- Install libraries
pip install -r requirements.txt
- Create the Chatbot model
python chatbot.py
- Run the Flask instance
python app.py
Installation & Setup:
- Install the virtual environment
python3 -m venv geeekgodbotenv
source geeekgodbotenv/bin/activate
- Install libraries
pip install -r requirements.txt
- Create the chatbot model
python chatbot.py
- Run the Flask instance
python app.py
The Flask instance should run on the port specified. If it runs then stop the instance by CTRL+C
- Run the Flask instance with gunicorn
gunicorn --bind 127.0.0.1:8888 wsgi:app
The Flask instance should run properly on the port specified. If it runs then stop the instance by CTRL+C
- Create a system service file
nano /etc/systemd/system/geeekgodai.service
Refer geeekgodai.service.example
file and replace the path with your path
- Reload the dameon
systemctl daemon-reload
- Start the
geeekgodai
service
systemctl start geeekgodai
- Check the status of
geeekgodai
service
systemctl status geeekgodai
The status should be running
- Create a nginx conf file
nano /etc/nginx/sites-available/geeekgodai
Refer geeekgodai.nginx.conf.example
file and replace the server URL with your URL
- Create a soft link
ln -s /etc/nginx/sites-available/geeekgodai /etc/nginx/sites-enabled/
- Test nginx and restart
nginx -t
service nginx restart