Skip to content

gunlinux/gunlinux.ru

Repository files navigation

Maintainability Python application Test Coverage

Install

$ cp config.example.sh config.sh

$ cp gunicorn.example.conf gunicorn.conf

$ python3 -m venv venv

$ source venv/bin/activate

$ pip install -r requirements.txt 

$ flask dbinit

Configs

  • config.sh

  • gunicorn.conf

Debug

$ source env/bin/activate

$ source config.sh

$ flask run

Deploy

$ source env/bin/activate

$ source config.sh

$ gunicorn -c gunicorn.conf "app:create_app()" 

Contribution

Check for linter and tests

$ make check