例外補足しないとめんどくさい。
if __name__ == '__main__':
from cherrypy.wsgiserver import CherryPyWSGIServer
server = CherryPyWSGIServer(('localhost',5000), Service())
try:
server.start()
except KeyboardInterrupt:
server.stop()
例外補足しないとめんどくさい。
if __name__ == '__main__':
from cherrypy.wsgiserver import CherryPyWSGIServer
server = CherryPyWSGIServer(('localhost',5000), Service())
try:
server.start()
except KeyboardInterrupt:
server.stop()