GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — qiandao/web.py at master · eromoe/qiandao Expand file tree/ Copy pathweb.pyMore file actions executable file ·41 lines (34 loc) · 1.19 KB / Copy pathweb.pyFile metadata and controlsexecutable file ·41 lines (34 loc) · 1.19 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 #!/usr/bin/env python # -*- encoding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<[email protected]> # http://binux.me # Created on 2014-07-30 12:38:34 import sys import logging import tornado.log from tornado.ioloop import IOLoop from tornado.httpserver import HTTPServer import config from web.app import Application if __name__ == "__main__": # init logging logger = logging.getLogger() logger.setLevel(logging.DEBUG if config.debug else logging.INFO) channel = logging.StreamHandler(sys.stdout) channel.setFormatter(tornado.log.LogFormatter()) logger.addHandler(channel) if not config.debug: channel = logging.StreamHandler(sys.stderr) channel.setFormatter(tornado.log.LogFormatter()) channel.setLevel(logging.WARNING) logger.addHandler(channel) if len(sys.argv) > 2 and sys.argv[1] == '-p' and sys.argv[2].isdigit(): port = int(sys.argv[2]) else: port = config.port http_server = HTTPServer(Application(), xheaders=True) http_server.bind(port, config.bind) http_server.start() logging.info("http server started on %s:%s", config.bind, port) IOLoop.instance().start() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |