"""run gunicorn""" #import copy #import os #import sys #from lxml import etree #import docing from nitpo import Nitpo class Server(Nitpo): def __init__(self, do_verbose=False): super().__init__() ns = self.const['ns'] self.verbose = do_verbose def options(self): if not self.has_conf['folders']['web_log']: print("server needs a web_log folder") quit() run = '/usr/bin/gunicorn --workers 1' if not n.has_conf('files', 'socket'): print("server need a socket file in nitpo.ini.") quit() socket_fufi = n.conf['files']['socket'] if not n.has_conf('files', 'pid'): print("server a pid file in nitpo.ini.") quit() pid_fufi = n.conf['files']['pid'] # if not n.has_conf('files', 'guniconf'): # print("I need guniconf file in nitpo.ini.") # quit() # conf_fufi = n.conf['files']['guniconf'] string = '' return string def run(self): options = self.options()