summaryrefslogtreecommitdiffstats
path: root/manage.py
blob: 8149ff1f5964547ce0b455bf6e971b0fe60629b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python
from flask.ext.script import Manager, Server, Shell
from accounts import app


def main():
    manager = Manager(app)
    manager.add_command(
        'runserver', Server(host='::', use_debugger=False))
    manager.add_command(
        'debug', Server(host='::', use_debugger=True))
    manager.add_command(
        'shell', Shell(make_context=lambda: dict(app=app)))
    manager.run()


if __name__ == '__main__':
    main()