def main(config_file):
    log.startLogging(sys.stdout)                                                
    application = web.Application(config_file)

    port = os.environ.get("PORT", 8888)                               
    reactor.listenTCP(int(port), application)
    reactor.run()