예제 #1
0
from init_app import socketio, create_app
import initializer
import os

app = create_app(True)

if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))
    socketio.run(app, host='0.0.0.0', port=port)
예제 #2
0
from init_app import create_app

if __name__ == '__main__':
    create_app().run()
예제 #3
0
파일: startup.py 프로젝트: umelly/tzdeply
# -*-  coding=utf-8 -*-

from init_app import create_app
from extensions import db

app = create_app('product_config.py')

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8080)
예제 #4
0
from init_app import create_app

app = create_app()

if __name__ == "__main__":
    app.run(debug=True)
예제 #5
0
파일: wsgi.py 프로젝트: bysmaks/yetictf
from init_app import create_app

if __name__ == '__main__':
    create_app().run(host='0.0.0.0')
from init_app import create_app, init_db

app = create_app(__name__)
예제 #7
0
# -*- coding: utf-8 -*-

from flask import request, flash, g, session
from flask import render_template, redirect, url_for
import omxplayer
import urllib

from config import DefaultConfig, local_movie, online_movie, omxoptions
from init_app import create_app

from extensions import get_online_files, get_local_files

app = create_app(DefaultConfig)

player = None
playing = None

@app.route('/')
def index():
	print str(get_online_files())
	return render_template('index.html', files=get_online_files())

@app.route('/player', methods=['POST', 'GET'])
def web_player():
	print request.args, 111
	print exec_command(request.args['c'])
	return 'waaa'
	
def exec_command(command):
	global player,playing
	if command == 'pause':