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()
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()
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)
from application.app import app if __name__ == '__main__': app.run(host='127.0.0.1')
from application.app import app app.debug = True app.secret_key = 'Tarzan_key' app.run(host='127.0.0.1', port='5000')
from application.app import app if __name__ == "__main__": app.run(port=8000)
from application.app import app # run server if __name__ == "__main__": # app.debug = True app.run(host='0.0.0.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())
from application.app import app if __name__ == "__main__": app.run(port=5400)
from application.app import app if __name__ == "__main__": app.run(debug=True)
from application.app import app, db if __name__ == '__main__': app.run();
#!/usr/bin/env python from application.app import app if __name__ == '__main__': app.run(debug=True)
from application.app import app if __name__ == '__main__': app.run(debug=True, host='0.0.0.0')
def devserver(): from application.app import app app.run(debug=True, port=5000)
# -*- 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()
from application.app import app if __name__ == '__main__': app.run(host='0.0.0.0', port=8000, debug=True)