Giter Site home page Giter Site logo

gunistache's Introduction

# NOTE: THIS IS NO LONGER NECESSARY AS OF TILESTACHE 1.6:
# http://tilestache.org/doc/#wsgi

gunistache is a very simple CLI wrapper to run a WSGI-derived TileStache server
on top of gunicorn.

It exists only because there is still no way to pass an application-specific
config file (that is something that your code can read at runtime) to gunicorn.

It works likes this:

	$> /gunistache -w 4 -k egg:gunicorn#gevent -b localhost:8000 config.json

What happens under the hood is this:

* The example_config.json file is parsed and checked for a gunistache['name]'
  key which is used to generate a new gunicorn script/handler with code to
  render and cache map tiles using TileStache.

* The example_config.json file is the same config file/data that TileStache uses
  to know what types of tiles to generate and how to render them. The path to
  the config file is hardcoded in the new gunicorn script/handler.

* By default these new handlers are written to a directory called 'gunistache'
  in your operating system's "tmp" directory. You can override this setting by
  specifying a gunistache['app_dir'] value in the config file. For example:

	"gunistache": {
		"name": "tileserver",
		"app_dir": "."
	}

* Once that is done the code is executed by handing everything back off to
  gunicorn.

That's it. There are no ponies. Some day this code will (hopefully) be
unnecessary.

See also:

* http://github.com/benoitc/gunicorn

* http://github.com/migurski/TileStache

gunistache's People

Contributors

thisisaaronland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.