Skip to content

Instantly share code, notes, and snippets.

@hhuuggoo
Created November 21, 2014 02:08
Show Gist options
  • Save hhuuggoo/f7b92ee283b9019e06eb to your computer and use it in GitHub Desktop.
Save hhuuggoo/f7b92ee283b9019e06eb to your computer and use it in GitHub Desktop.
gunicorn
from os.path import join, dirname
from blaze import resource
from blaze.server import Server
from bambooclient import Client, autoload
def make_app(*args):
print args
basedir = dirname(__file__)
data = autoload(join(basedir, 'data'))
server = Server(dict(data))
c = Client("http://localhost:6001/", "admin")
c.connect('password')
c.setup_blaze_server(server, "http://localhost:6363/")
return server.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment