Example #1
0
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)
Example #2
0
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)
Example #4
0
from myapp import app

app.run(host='0.0.0.0', port=9000, debug=True)
Example #5
0
 def main(self):
     app.run(host="127.0.0.1", port=8900)
Example #6
0
#!/usr/bin/env python
from myapp import app

app.run(host='0.0.0.0', port=8080, debug=True)
Example #7
0
File: run.py Project: dikee/ercot
from myapp import app


app.run(debug=True, host="0.0.0.0", port=4000)

Example #8
0
#coding=utf-8
from myapp import app

if __name__ == "__main__":
    app.run()





Example #9
0
#!/usr/bin/env python
from myapp import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True)
Example #10
0
#!/usr/bin/env python3
# coding:utf-8

from myapp import app

if __name__ == '__main__':
    app.run(host=app.config.get('HOST'))
Example #11
0
from myapp import app

if __name__ == "__main__":
    app.run(port=4000, debug=True)
Example #12
0
from myapp import app

if __name__ == "__main__":
    app.run(host="0.0.0.0")
Example #13
0
from myapp import app

if __name__ == '__main__':
    app.run(port=40444, host="0.0.0.0", debug=True)
Example #14
0
from myapp import app

if __name__ == '__main__':
    app.run(host='localhost', port=3000, debug=True)
Example #15
0
from myapp import app

if __name__ == '__main__':
    app.run()
Example #16
0
from myapp import app

if __name__ == '__main__':
    app.run(debug=True, port=8080)
Example #17
0
# app as application for wsgi
from myapp import app as application

application.run(host='0.0.0.0', debug=True)
Example #18
0
from myapp import app
app.run(host='0.0.0.0', port=3001, debug=True)
Example #19
0
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)

Example #20
0
#!/usr/bin/env python
from myapp import app
app.run(debug = True)

Example #21
0
from myapp import app, celery

if __name__ == '__main__':

    app.run(host=app.config['BIND_IP'],
            port=app.config['BIND_PORT'],
            debug=app.config['DEBUG'])
Example #22
0
# app as application for wsgi
from myapp import app as application

application.run(host='0.0.0.0', port=5000, debug=True)
Example #23
0
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-

from myapp import app as application

application.run(debug=True, host='0.0.0.0', port=8000)
Example #24
0
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()
Example #25
0
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'])
Example #26
0
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')
Example #28
0
# -*- coding: utf-8 -*-
"""
    wsgi
    ~~~~
"""

from myapp import app

if __name__ == '__main__':
    app.run(host='0.0.0.0')
Example #29
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)
Example #30
0
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)
Example #31
0
from myapp import app, init_for

if __name__ == '__main__':
    init_for('dev')
    app.run('0.0.0.0', port=9000)
Example #32
0
 def flaskmain(self):
     log_entry('flaskmain() started')
     app.run(debug=False, host='0.0.0.0', port=port)
     log_entry('flaskmain() finished')
Example #33
0
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)
Example #34
0
from myapp import app

app.run(host="localhost", port=5000, debug=True)

Example #35
0
from myapp import app


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=7800)



Example #36
0
from myapp import app

if __name__ == '__main__':
    app.run(debug=True)
from myapp import app
app.run(port=3000)
Example #38
0
from myapp import app

app.run(host='0.0.0.0', port=8002)
Example #39
0
from myapp import app
import json

app.run(host='0.0.0.0', port=5000, threaded=False)
Example #40
0
# app as application for wsgi
from myapp import app as application

application.run(debug=True)
Example #41
0
#!/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)
Example #42
0
from myapp import app

if __name__ == '__main__':
    app.debug = True
#    app.run()
    app.run(host='0.0.0.0', port=5000)
Example #43
0
from myapp import app
app.run(host='0.0.0.0', port=3001)  # , debug=True
Example #44
0
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')
Example #45
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'))