Skip to content

Commit

Permalink
attempting to runserver better
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahmarks committed Mar 23, 2016
1 parent 493dc5d commit 56af51d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
from app import create_app, db
from app.models import User, Role
from flask.ext.script import Manager, Shell
from flask.ext.script import Manager, Shell, Server
from flask.ext.migrate import Migrate, MigrateCommand

app = create_app(os.getenv('FLASK_CONFIG') or 'default')
Expand All @@ -19,7 +19,7 @@ def make_shell_context():
return dict(app=app, db=db, User=User, Role=Role)
manager.add_command("shell", Shell(make_context=make_shell_context))
manager.add_command('db', MigrateCommand)

manager.add_command("runserver", Server(host="0.0.0.0", port=5000))

@manager.command
def test():
Expand Down

0 comments on commit 56af51d

Please sign in to comment.