Install requirements using pip install -r requirements.txt
To run the dev server execute the following in the base directory of this git:
env DB_TYPE=sqlite DB_LOCATION=db_dev.sqlite3 LOGGING_LEVEL=DEBUG python3 -m skirmserv
To run the server using gunicorn, execute the following:
gunicorn -c gunicorn_conf.py --worker-class eventlet skirmserv:app
Following config variables may be set via environment variables:
SECRET_KEY
- Secret key for flaskLOGGING_LEVEL
- One of DEBUG, INFO, WARNING, ERROR, CRITICALDB_TYPE
- One of sqlite, mysql or postgresqlDB_LOCATION
- sqlite db pathDB_HOST
- mysql/postgres hostDB_PORT
- mysql/postgres portDB_DATABASE
- mysql/postgres databaseDB_USER
- mysql/postgres userDB_PASS
- mysql/postgres password
(C) 2022-2023 Ole Lange