1. Sean Gillies
  2. mush

Commits

Sean Gillies  committed 2f103c1

Remove older server

  • Participants
  • Parent commits 06fa8e8
  • Branches default

Comments (0)

Files changed (3)

File mush/app.py

View file
  • Ignore whitespace
+import urls
 
 def make_app(global_config, **local_config):
-    import pdb; pdb.set_trace()
-    return None
-
+    return urls.urls

File mush/mush.py

  • Ignore whitespace
-#!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()    
-

File mush/views.py

View file
  • Ignore whitespace
 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