mirror of
https://github.com/moepman/bk-dss
synced 2024-11-17 17:19:12 +01:00
Prepare for uWSGI usage.
This commit is contained in:
parent
b1e0035e83
commit
6c69d9f622
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
# config file
|
||||
config.cfg
|
||||
# uwsgi settings
|
||||
uwsgi.ini
|
||||
|
@ -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.
|
||||
|
@ -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
7
uwsgi.ini.example
Normal 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
|
Loading…
Reference in New Issue
Block a user