示例#1
0
#!/usr/bin/env python
# -*- coding: utf8 -*-

# manage.py

from gevent.monkey import patch_all
patch_all()

from flask.ext.script import Manager
from flask.ext.assets import ManageAssets
from purkinje.app import get_app
from purkinje.assets import register_assets

app = get_app()
manager = Manager(app)
assets_env = register_assets(app)

manager.add_command("assets", ManageAssets(assets_env))


@manager.command
def hello():
    print 'hello'

if __name__ == "__main__":
    manager.run()
示例#2
0
文件: manage.py 项目: hanxue/purkinje
#!/usr/bin/env python
# -*- coding: utf8 -*-

# manage.py

from gevent.monkey import patch_all
patch_all()

from flask.ext.script import Manager
from flask.ext.assets import ManageAssets
from purkinje.app import get_app
from purkinje.assets import register_assets

app = get_app()
manager = Manager(app)
assets_env = register_assets(app)

manager.add_command("assets", ManageAssets(assets_env))


@manager.command
def hello():
    print 'hello'


if __name__ == "__main__":
    manager.run()
示例#3
0
def app():
    return sut.get_app()
示例#4
0
def app():
    return sut.get_app()