drop old bins
authorTero Marttila <terom@paivola.fi>
Mon, 15 Sep 2014 01:34:42 +0300
changeset 150 cd07ab2a295c
parent 149 176a656031cb
child 151 dfd8022d000e
drop old bins
bin/dev-server
bin/pngtile.fcgi
--- a/bin/dev-server	Mon Sep 15 01:34:06 2014 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#!/usr/bin/python
-
-import wsgiref.simple_server
-import werkzeug
-from werkzeug.exceptions import NotFound
-import memcache
-
-import pngtile.wsgi
-
-def main (host='0.0.0.0', port=8000, memcache_host='localhost:11211') :
-    print "Using memcache server at %s" % memcache_host
-
-    # cache
-    cache = memcache.Client([memcache_host])
-
-    # original app
-    app = pngtile.wsgi.WSGIApplication(cache)
-
-    # serve up static content as well
-    app = werkzeug.SharedDataMiddleware(app, {
-        '/static':          'static',
-    })
-    
-    # http server
-    httpd = wsgiref.simple_server.make_server(host, port, app)
-
-    print "Listening on %s:%d" % (host, port)
-    
-    # go
-    httpd.serve_forever()
-
-if __name__ == '__main__' :
-    main()
-
--- a/bin/pngtile.fcgi	Mon Sep 15 01:34:06 2014 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-#!/usr/bin/python
-
-import flup.server.fcgi
-
-import memcache
-
-def run_fastcgi (app, bind=None) :
-    # create WSGIServer
-    server = flup.server.fcgi.WSGIServer(app, 
-        # try to supress threading
-        multithreaded=False, 
-        multiprocess=False, 
-        multiplexed=False,
-        
-        # specify the bind() address
-        bindAddress=bind,
-
-        # leave as defaults for now
-        umask=None,
-
-        # XXX: non-debug mode?
-        debug=True,
-    )
-    
-    # run... threads :(
-    server.run()
-
-def main (bind=None) :
-    """
-        Run as a non-threaded single-process non-multiplexed FastCGI server
-    """
-
-    # open cache
-    cache = memcache.Client(['localhost:11211'])
-    
-    # build app
-    app = pngtile.wsgi.WSGIApplication(cache)
-
-    # server
-    run_fastcgi(app, bind)
-
-if __name__ == '__main__' :
-    import pngtile.wsgi
-
-    main()
-