示例#1
0
def run(no_sockets=False):
    # with WebSocketHandler debug doest work, maybe some solution from
    # http://flask.pocoo.org/snippets/34/
    if no_sockets:
        app.run('localhost',5000)
    else:
        from gevent import pywsgi
        from geventwebsocket.handler import WebSocketHandler
        server = pywsgi.WSGIServer(('localhost', 5000), app, handler_class=WebSocketHandler)
        server.serve_forever()
示例#2
0
def run(no_sockets=False):
    # with WebSocketHandler debug doest work, maybe some solution from
    # http://flask.pocoo.org/snippets/34/
    if no_sockets:
        app.run('localhost', 5000)
    else:
        from gevent import pywsgi
        from geventwebsocket.handler import WebSocketHandler
        server = pywsgi.WSGIServer(('localhost', 5000),
                                   app,
                                   handler_class=WebSocketHandler)
        server.serve_forever()
示例#3
0
from application.app import app

app = app

if __name__ == "main":
	app.run()
from application.app import app

# run server
if __name__ == "__main__":
	# app.debug = True
	app.run()
def runserver():
    app.run(debug=True)
示例#6
0
from application.app import app

if __name__ == '__main__':
    app.run(host='127.0.0.1')
示例#7
0
文件: run.py 项目: juanvaes/horus
from application.app import app

app.debug = True
app.secret_key = 'Tarzan_key'
app.run(host='127.0.0.1', port='5000')
示例#8
0
from application.app import app

if __name__ == "__main__":
    app.run(port=8000)
示例#9
0
from application.app import app

# run server
if __name__ == "__main__":
    # app.debug = True
    app.run(host='0.0.0.0')
示例#10
0
from IPython import embed
from application.app import app
import traceback
import logging

if __name__ == '__main__':
    try:
        app.run(debug=True, use_reloader=False)
    except:
        logging.error(traceback.format_exc())
示例#11
0
from application.app import app

if __name__ == "__main__":
    app.run(port=5400)
示例#12
0
from application.app import app

if __name__ == "__main__":
    app.run(debug=True)
示例#13
0
from application.app import app, db


if __name__ == '__main__':
    app.run();
示例#14
0
#!/usr/bin/env python
from application.app import app

if __name__ == '__main__':
    app.run(debug=True)
示例#15
0
文件: run.py 项目: otahontas/tuho
from application.app import app

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')
示例#16
0
def devserver():
    from application.app import app
    app.run(debug=True, port=5000)
示例#17
0
# -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))

from application.app import app as application

if __name__ == '__main__':
    application.run()
示例#18
0
from application.app import app


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8000, debug=True)
示例#19
0
文件: wsgi.py 项目: Se7ge/rso
# -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))
from application.app import app as application
if __name__ == '__main__':
    application.run()