1
0
mirror of https://github.com/moepman/bk-dss synced 2024-12-22 12:44:27 +01:00

Prepare for uWSGI usage.

This commit is contained in:
Markus 2017-03-20 16:56:56 +01:00
parent b1e0035e83
commit 6c69d9f622
5 changed files with 13 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
# config file
config.cfg
# uwsgi settings
uwsgi.ini

View File

@ -12,6 +12,10 @@ TBA
* py-ldap >= 2.4.15
* py-redis >= 2.10
## uWSGI
To use dss with uWSGI create a file called uwsgi.ini from the provided example and change the socket and optinally the chroot setting. You can use `/usr/bin/uwsgi --ini /path/to/dss/uwsgi.ini` to start your instance.
## Misc
Source code is under MIT license, powered by Flask and Bootstrap.

View File

View File

@ -1,7 +0,0 @@
import sys
import os
sitepath = os.path.realpath(os.path.dirname(__file__))
sys.path.insert(0, sitepath)
from index import app as application

7
uwsgi.ini.example Normal file
View File

@ -0,0 +1,7 @@
[uwsgi]
socket = 127.0.0.1:5001
#chroot = /path/to/dss/
wsgi-file = dss.py
callable = app
processess = 4
threads = 2