mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 17:33:57 +01:00
569d40161b
Co-authored-by: Leander <henceiusegentoo@users.noreply.github.com>
21 lines
521 B
Python
Executable file
21 lines
521 B
Python
Executable file
try:
|
|
from cheroot.wsgi import Server as WSGIServer, PathInfoDispatcher
|
|
except ImportError:
|
|
from cherrypy.wsgiserver import CherryPyWSGIServer as WSGIServer, WSGIPathInfoDispatcher as PathInfoDispatcher
|
|
|
|
from app import production
|
|
|
|
d = PathInfoDispatcher({'/': production})
|
|
server = WSGIServer(('0.0.0.0', 2323), d)
|
|
|
|
print('Ready...')
|
|
|
|
try:
|
|
print('Starting...')
|
|
print()
|
|
print('* http://localhost:2323')
|
|
print('* https://nova-oss.com')
|
|
server.start()
|
|
except KeyboardInterrupt:
|
|
server.stop()
|