Created
November 21, 2014 02:08
-
-
Save hhuuggoo/f7b92ee283b9019e06eb to your computer and use it in GitHub Desktop.
gunicorn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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