Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:377dcd10b9
[formerly3360eb6c5f
] Former-commit-id:8e80217e59
17 lines
438 B
Python
Executable file
17 lines
438 B
Python
Executable file
#!/usr/bin/env python
|
|
from werkzeug import script
|
|
|
|
def make_app():
|
|
from couchy.application import Couchy
|
|
return Couchy('http://localhost:5984')
|
|
|
|
def make_shell():
|
|
from couchy import models, utils
|
|
application = make_app()
|
|
return locals()
|
|
|
|
action_runserver = script.make_runserver(make_app, use_reloader=True)
|
|
action_shell = script.make_shell(make_shell)
|
|
action_initdb = lambda: make_app().init_database()
|
|
|
|
script.run()
|