make web interface make sense again

This commit is contained in:
petrucci4prez 2017-06-03 01:41:27 -04:00
parent cefcbe613d
commit 0fc324cb7b
1 changed files with 2 additions and 5 deletions

View File

@ -20,10 +20,6 @@ class TTSForm(FlaskForm):
# TODO: fix random connection fails (might be an nginx thing)
@async(daemon=True)
def _runApp(a):
logger.info('Starting web interface')
a.run(debug=False, threaded=True)
def initWebInterface(stateMachine):
siteRoot = Blueprint('siteRoot', __name__, static_folder='static', static_url_path='')
@ -52,4 +48,5 @@ def initWebInterface(stateMachine):
app.secret_key = '3276d68dac56985bea352325125641ff'
app.register_blueprint(siteRoot, url_prefix='/pyledriver')
_runApp(app)
logger.info('Starting web interface')
app.run(debug=False, threaded=True)