diff options
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=9200)) + if __name__ == '__main__': manager.run() |