Esempio n. 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()
Esempio n. 2
0
 def testsetuplogging(self):
   #TODO(wan): Make this better
   util.setuplogging()