summaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
Diffstat (limited to 'manage.py')
-rwxr-xr-xmanage.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/manage.py b/manage.py
new file mode 100755
index 0000000..0002278
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+from flask.ext.script import Manager, Server, Shell
+from app 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()