예제 #1
0
def apprunner(args=sys.argv):
  signal.signal(signal.SIGINT, lambda sig,oth: os.abort())
  FLAGS(args)
  util.setuplogging()
  web.webapi.config.debug = False
  app = web.application(urls, globals()).wsgifunc()
  s = wsgiserver.CherryPyWSGIServer((FLAGS.ip, FLAGS.port), app,
                                    server_name='cs4500.server')
  s.start()
예제 #2
0
 def testsetuplogging(self):
   #TODO(wan): Make this better
   util.setuplogging()