mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 21:23:56 +01:00
21 lines
521 B
Python
21 lines
521 B
Python
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()
|