ry / ebb fork watch download tarball
public this repo is viewable by everyone
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
ryah (author)
about 1 month ago
commit  526f7824a2d26d12f7d890730771378d3dd4b19f
tree    31d774d3531e0a90965a5e85cc027a1d9176390b
parent  3afab8fa81d2321e45f05addbb75a55d99a9a783
ebb / python_lib / __init__.py
100644 13 lines (10 sloc) 0.208 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
"""ebb
 
A WSGI web server!
"""
import ebb_ffi
 
def start_server(app, args = {}):
  if args['port']:
    ebb_ffi.listen_on_port(int(args['port']))
  else:
    print "bad!"
  
  ebb_ffi.process_connections(app)