manager runserver change

This commit is contained in:
Matthew Scragg 2014-01-16 16:45:31 -06:00
parent 5c09cf38b1
commit cb4a5f9465
3 changed files with 4 additions and 3 deletions

View file

@ -22,7 +22,7 @@ import httplib
import traceback import traceback
from flask import Flask, request, render_template, url_for, redirect, session, flash, g from flask import Flask, request, render_template, url_for, redirect, session, flash, g
from flask.ctx import _AppCtxGlobals from flask.ctx import _AppCtxGlobals
from flask.ext.script import Manager from flask.ext.script import Manager, Server
from flask.ext.login import LoginManager, login_required from flask.ext.login import LoginManager, login_required
from flask.ext.assets import Environment, Bundle from flask.ext.assets import Environment, Bundle
from werkzeug.routing import BaseConverter from werkzeug.routing import BaseConverter
@ -167,6 +167,8 @@ app.debug = True
db.init_app(app) db.init_app(app)
manager = Manager(app) manager = Manager(app)
manager.add_command("runserver", Server(host="0.0.0.0", port=10000))
login_manager = LoginManager() login_manager = LoginManager()
login_manager.init_app(app) login_manager.init_app(app)

View file

@ -8,7 +8,6 @@ from gittle import Gittle
from dulwich.repo import NotGitRepository from dulwich.repo import NotGitRepository
from werkzeug.utils import escape, unescape from werkzeug.utils import escape, unescape
from util import to_canonical from util import to_canonical
from realms.models import Site
class MyGittle(Gittle): class MyGittle(Gittle):

View file

@ -1,2 +1,2 @@
[program:realms] [program:realms]
command=/home/deploy/virtualenvs/realms/bin/python /home/deploy/realms/manage.py command=/home/deploy/virtualenvs/realms/bin/python /home/deploy/realms/manage.py server