def runhtml(proto, pea): os.environ['WERKZEUG_RUN_MAIN'] = 'false' from myapp import app app.debug = True app.proto = proto app.pea = pea # app.run(host="192.168.10.252") app.run(use_reloader=False)
def main(): app.run(debug=True)
from myapp import app #app.run(host='0.0.0.0', port=3001, debug=True) app.run(host='127.0.0.1', port=5000, debug=True)
from myapp import app app.run(host='0.0.0.0', port=9000, debug=True)
def main(self): app.run(host="127.0.0.1", port=8900)
#!/usr/bin/env python from myapp import app app.run(host='0.0.0.0', port=8080, debug=True)
from myapp import app app.run(debug=True, host="0.0.0.0", port=4000)
#coding=utf-8 from myapp import app if __name__ == "__main__": app.run()
#!/usr/bin/env python from myapp import app if __name__ == '__main__': app.run(host='0.0.0.0', debug=True)
#!/usr/bin/env python3 # coding:utf-8 from myapp import app if __name__ == '__main__': app.run(host=app.config.get('HOST'))
from myapp import app if __name__ == "__main__": app.run(port=4000, debug=True)
from myapp import app if __name__ == "__main__": app.run(host="0.0.0.0")
from myapp import app if __name__ == '__main__': app.run(port=40444, host="0.0.0.0", debug=True)
from myapp import app if __name__ == '__main__': app.run(host='localhost', port=3000, debug=True)
from myapp import app if __name__ == '__main__': app.run()
from myapp import app if __name__ == '__main__': app.run(debug=True, port=8080)
# app as application for wsgi from myapp import app as application application.run(host='0.0.0.0', debug=True)
from myapp import app app.run(host='0.0.0.0', port=3001, debug=True)
from myapp import app from werkzeug.contrib.fixers import ProxyFix app.wsgi_app = ProxyFix(app.wsgi_app) if __name__ == '__main__': app.run(debug=True, port=8000)
#!/usr/bin/env python from myapp import app app.run(debug = True)
from myapp import app, celery if __name__ == '__main__': app.run(host=app.config['BIND_IP'], port=app.config['BIND_PORT'], debug=app.config['DEBUG'])
# app as application for wsgi from myapp import app as application application.run(host='0.0.0.0', port=5000, debug=True)
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- from myapp import app as application application.run(debug=True, host='0.0.0.0', port=8000)
import os import sys #APP_INSTALL_PATH='/var/www/myapp' #VIRTUALENV_PATH='/var/www/myapp/virtualenv' #activate_this = os.path.join(VIRTUALENV_PATH, 'bin/activate_this.py') #execfile(activate_this, dict(__file__=activate_this)) #sys.path.insert(0, APP_INSTALL_PATH) from myapp import app as application if __name__ == "__main__": application.run()
from myapp import app from views import CartAddView, CartView app.add_url_rule('/api/cart/', view_func=CartView.as_view('show_cart')) app.add_url_rule('/api/cart/add-to-cart/', view_func=CartAddView.as_view('add_to_cart')) if __name__ == '__main__': app.run(host=app.config['SELF_SERVER'], port=app.config['SELF_SERVER_PORT'], threaded=True, debug=app.config['DEBUG'])
from myapp import app if __name__ == '__main__': app.run('0.0.0.0', 5500, True)
# app as application for wsgi from myapp import app as application application.run(debug=True, port=3000, host='0.0.0.0')
# -*- coding: utf-8 -*- """ wsgi ~~~~ """ from myapp import app if __name__ == '__main__': app.run(host='0.0.0.0')
from myapp import models, app import os import setup print(os.getcwd()) print(os.listdir()) print(os.listdir('myapp')) if __name__ == "__main__": app.run(debug=False, threaded=True)
from myapp import app #from myapp_fac import create_app import config #app = create_app('config') app.run(host='10.2.2.121', port=4001, threaded=True, debug=True) #app1.run(host='0.0.0.0', debug=True)
from myapp import app, init_for if __name__ == '__main__': init_for('dev') app.run('0.0.0.0', port=9000)
def flaskmain(self): log_entry('flaskmain() started') app.run(debug=False, host='0.0.0.0', port=port) log_entry('flaskmain() finished')
from flask import Flask from optparse import OptionParser from myapp import app if __name__ == "__main__": # Run with docker parser = OptionParser() parser.add_option("-d", "--debug", dest="debug", default=False, action="store_true", help="Use debug option") options, args = parser.parse_args() # app.run(debug=options.debug, host='0.0.0.0', # port=5001) app.run(debug=True, port=5001)
from myapp import app app.run(host="localhost", port=5000, debug=True)
from myapp import app if __name__ == '__main__': app.run(host='0.0.0.0', port=7800)
from myapp import app if __name__ == '__main__': app.run(debug=True)
from myapp import app app.run(port=3000)
from myapp import app app.run(host='0.0.0.0', port=8002)
from myapp import app import json app.run(host='0.0.0.0', port=5000, threaded=False)
# app as application for wsgi from myapp import app as application application.run(debug=True)
#!/usr/bin/env python # -*- coding:utf8 -*- from myapp import app if __name__ == '__main__': app.run(debug=app.config['DEBUG'], host='0.0.0.0', port=8000)
from myapp import app if __name__ == '__main__': app.debug = True # app.run() app.run(host='0.0.0.0', port=5000)
from myapp import app app.run(host='0.0.0.0', port=3001) # , debug=True
from myapp import scheduler scheduler.start() from myapp import app, sSLContext # app.run(host='0.0.0.0', port=12344, debug=True, ssl_context = sSLContext, use_reloader=False) app.run(host='0.0.0.0')
import envparse from myapp import app, init_app env = envparse.Env(PORT=(int, 5000)) if __name__ == "__main__": init_app(app) app.run(host='0.0.0.0', port=env('PORT'))