aboutsummaryrefslogtreecommitdiff
path: root/manage.py
diff options
context:
space:
mode:
authorsu27 <damn.su@gmail.com>2016-01-20 18:38:59 +0800
committersu27 <damn.su@gmail.com>2016-01-20 18:38:59 +0800
commitcdee11973d80273e6114121d02361bf958418765 (patch)
tree4480e33a7cda2dd62b76d09008e296fa78aa8563 /manage.py
parentrst -> txt (diff)
downloadstackbin-cdee11973d80273e6114121d02361bf958418765.tar.gz
stackbin-cdee11973d80273e6114121d02361bf958418765.tar.bz2
stackbin-cdee11973d80273e6114121d02361bf958418765.zip
some change
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