summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>2017-01-09 11:31:54 +0200
committerVladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>2017-01-09 11:31:54 +0200
commitb68584681207baa80012345d2800764b1b338dfb (patch)
treedc94a37adaa41a68a93537d850f7a037743da75f
parentebuild.py: fix bashism (diff)
downloadwebapp-config-b68584681207baa80012345d2800764b1b338dfb.tar.gz
webapp-config-b68584681207baa80012345d2800764b1b338dfb.tar.bz2
webapp-config-b68584681207baa80012345d2800764b1b338dfb.zip
Adds uWSGI server support
-rw-r--r--WebappConfig/config.py3
-rw-r--r--WebappConfig/server.py13
-rwxr-xr-xconfig/webapp-config1
3 files changed, 15 insertions, 2 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index 3a176a0..c66d146 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -1581,7 +1581,8 @@ class Config:
'cherokee' : WebappConfig.server.Cherokee,
'nginx' : WebappConfig.server.Nginx,
'gatling' : WebappConfig.server.Gatling,
- 'tracd' : WebappConfig.server.Tracd,}
+ 'tracd' : WebappConfig.server.Tracd,
+ 'uwsgi' : WebappConfig.server.uWSGI,}
server = self.config.get('USER', 'vhost_server')
diff --git a/WebappConfig/server.py b/WebappConfig/server.py
index ec9c141..a458505 100644
--- a/WebappConfig/server.py
+++ b/WebappConfig/server.py
@@ -366,6 +366,16 @@ class Tracd(Basic):
self.vhost_server_uid = get_user('tracd')
self.vhost_server_gid = get_group('tracd')
+class uWSGI(Basic):
+
+ name = 'uWSGI'
+ desc = 'supports installation on uWSGI'
+ dep = 'www-servers/uwsgi'
+
+ def set_server_user(self):
+ self.vhost_server_uid = get_user('uwsgi')
+ self.vhost_server_gid = get_group('uwsgi')
+
def listservers():
OUT.notice('\n'.join(['apache',
@@ -373,4 +383,5 @@ def listservers():
'cherokee',
'nginx',
'gatling',
- 'tracd',]))
+ 'tracd',
+ 'uwsgi',]))
diff --git a/config/webapp-config b/config/webapp-config
index da01bc6..e8d1d8a 100755
--- a/config/webapp-config
+++ b/config/webapp-config
@@ -70,6 +70,7 @@ vhost_hostname="localhost"
# nginx
# gatling
# tracd
+# uwsgi
#
# you can override this setting by using the -s switch to webapp-config