diff options
author | 2017-05-22 20:44:11 -0400 | |
---|---|---|
committer | 2017-05-22 20:44:11 -0400 | |
commit | 8bb88ecdc7b98469e21f68159c80f31f610d6f0e (patch) | |
tree | 650f61f9d5c3c3034177185966120aba530e1762 | |
parent | config/webapp-config: Updates config to use eprefix (diff) | |
parent | Adds uWSGI server support (diff) | |
download | webapp-config-8bb88ecdc7b98469e21f68159c80f31f610d6f0e.tar.gz webapp-config-8bb88ecdc7b98469e21f68159c80f31f610d6f0e.tar.bz2 webapp-config-8bb88ecdc7b98469e21f68159c80f31f610d6f0e.zip |
Merge pull request #6 from SpiderX/master
Adds uWSGI server support
-rw-r--r-- | WebappConfig/config.py | 3 | ||||
-rw-r--r-- | WebappConfig/server.py | 13 | ||||
-rwxr-xr-x | config/webapp-config | 1 |
3 files changed, 15 insertions, 2 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py index 2c11d39..c9a8b32 100644 --- a/WebappConfig/config.py +++ b/WebappConfig/config.py @@ -1583,7 +1583,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 4c3b571..25bcdf3 100644 --- a/WebappConfig/server.py +++ b/WebappConfig/server.py @@ -367,6 +367,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', @@ -374,4 +384,5 @@ def listservers(): 'cherokee', 'nginx', 'gatling', - 'tracd',])) + 'tracd', + 'uwsgi',])) diff --git a/config/webapp-config b/config/webapp-config index e3778fd..93a7d9d 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 |