aboutsummaryrefslogtreecommitdiff
path: root/manage.py
diff options
context:
space:
mode:
Diffstat (limited to 'manage.py')
-rw-r--r--manage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/manage.py b/manage.py
index c1e2990..cab41eb 100644
--- a/manage.py
+++ b/manage.py
@@ -1,4 +1,4 @@
-from flask.ext.script import Manager
+from flask.ext.script import Manager, Server
from pastebin import app, db
@@ -16,6 +16,8 @@ def dropdb():
"""Drops all database tables."""
db.drop_all()
+manager.add_command('server', Server(host='0.0.0.0', port=8000))
+
if __name__ == '__main__':
manager.run()
bgstack15