diff options
author | su27 <damn.su@gmail.com> | 2016-01-20 18:38:59 +0800 |
---|---|---|
committer | su27 <damn.su@gmail.com> | 2016-01-20 18:38:59 +0800 |
commit | cdee11973d80273e6114121d02361bf958418765 (patch) | |
tree | 4480e33a7cda2dd62b76d09008e296fa78aa8563 /manage.py | |
parent | rst -> txt (diff) | |
download | stackbin-cdee11973d80273e6114121d02361bf958418765.tar.gz stackbin-cdee11973d80273e6114121d02361bf958418765.tar.bz2 stackbin-cdee11973d80273e6114121d02361bf958418765.zip |
some change
Diffstat (limited to 'manage.py')
-rw-r--r-- | manage.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() |