bin/dev-server
changeset 130 aaae02944832
parent 36 caabf287c75e
child 103 1a6a6957197d
equal deleted inserted replaced
41:941090e3d094 130:aaae02944832
    11     '/static':      werkzeug.SharedDataMiddleware(NotFound(), {
    11     '/static':      werkzeug.SharedDataMiddleware(NotFound(), {
    12         '/':            'static',
    12         '/':            'static',
    13     }),
    13     }),
    14 })
    14 })
    15 
    15 
    16 def main (host='127.0.0.1', port=8000) :
    16 def main (host='0.0.0.0', port=8000) :
    17     httpd = wsgiref.simple_server.make_server(host, port, app)
    17     httpd = wsgiref.simple_server.make_server(host, port, app)
    18 
    18 
    19     print "Listening on %s:%d" % (host, port)
    19     print "Listening on %s:%d" % (host, port)
    20 
    20 
    21     httpd.serve_forever()
    21     httpd.serve_forever()