blob: 7dbf00439364ab3482c4d669fb1135f817c93af8 (
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()
|