Commit b75809bd authored by root's avatar root
Browse files

Merge branch 'master' of

parents b4fed458 d2274f14
\ No newline at end of file
# Online survey creation tool
### Prerequisites
Flask app with MariaDB
Check requirements.txt
### Installing
Install python packages with pip and preferably in virtual environment:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
### Deployment
There are multiple deployment options, but one working solution is:
nginx + gunicorn (with gevent worker)
Create systemd startup script in '/etc/systemd/system/gunicorn.service'
Description=Gunicorn instance to serve flask application
ExecStart=/srv/rating/venv/bin/gunicorn run:app -b localhost:8000 -k gevent -w 1
Run 'systemctl daemon-reload' to reload units.
Enable and start gunicorn service:
service gunicorn enable
service gunicorn start
### Logs
Error logs are saved to application folder (/srv/rating/logs/)
Optionally with journalctl:
journalctl -u gunicorn.service
### Restart server after updates
service gunicorn restart
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment