Commits

Anonymous committed 2f103c1

Remove older server

Comments (0)

Files changed (3)

+import urls
 
 def make_app(global_config, **local_config):
-    import pdb; pdb.set_trace()
-    return None
-
+    return urls.urls

mush/mush.py

-#!env python
-
-import daemon
-import os
-import urls
-
-if __name__ == '__main__':
-    
-    #code = daemon.createDaemon()
-
-    #from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
-    #httpd = WSGIServer(('', 8082), WSGIRequestHandler)
-    #httpd.set_app(urls.urls)
-
-    #from cherrypy import wsgiserver
-    #server = wsgiserver.CherryPyWSGIServer(
-    #             ('', 8082),
-    #             urls.urls,
-    #             )
-
-    from flup.server.scgi_fork import WSGIServer
-    from flup.middleware.error import ErrorMiddleware
-    server = WSGIServer(
-             urls.urls, #ErrorMiddleware(urls.urls, 'sgillies@frii.com', applicationName='Mush', errorPage='', debug=True), 
-             bindAddress=('localhost', 8082),
-             maxRequests=10,
-             minSpare=2,
-             debug=True,
-             loggingLevel=3,
-             )
-    f = open('mush.pid', 'wb')
-    f.write(str(os.getpid()))
-    f.close()
-    server.run()    
-
 from urllib import unquote_plus
 
 from genshi.template import TemplateLoader
-loader = TemplateLoader(['/home/sean/Projects/mush/templates/'])
+loader = TemplateLoader(['/home/sean/Projects/mush/mush/templates/'])
 
 import envutil
 import overlap