|
|
|
@ -34,7 +34,7 @@ SOFTWARE. |
|
|
|
|
-------------------------------------------------------------------------------------------""" |
|
|
|
|
|
|
|
|
|
""" --- PYTHON IMPORTS --- """ |
|
|
|
|
import os, signal |
|
|
|
|
import os, signal, sys, subprocess |
|
|
|
|
from socket import error as SocketError |
|
|
|
|
|
|
|
|
|
""" --- STASHR DEPENDENCY IMPORTS --- """ |
|
|
|
@ -96,10 +96,11 @@ class Server: |
|
|
|
|
|
|
|
|
|
def restart_server(self, ignored_signum, ignored_frame): |
|
|
|
|
app.logger.debug('Restarting Server') |
|
|
|
|
print('restatr') |
|
|
|
|
self.wsgiserver.close() |
|
|
|
|
# self.define_wsgi() |
|
|
|
|
self.wsgiserver.start() |
|
|
|
|
self.wsgiserver.stop() |
|
|
|
|
try: |
|
|
|
|
subprocess.check_call([sys.executable, 'start.py']) |
|
|
|
|
except subprocess.CalledProcessError as e: |
|
|
|
|
print(e) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server = Server() |
|
|
|
|