Example #1
0
from portal import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True)
Example #2
0
#coding: utf-8
import os
import sys
sys.path.append(os.path.dirname(__name__))

from portal import app

if __name__ == '__main__':
	app.run(host="0.0.0.0", port=8080, debug=True, threaded=True)
Example #3
0
#!/usr/bin/env python

from portal import app

if __name__ == '__main__':
    app.run(host='localhost',
            ssl_context=('./ssl/server.crt', './ssl/server.key'))
Example #4
0
from portal import app

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8000)
Example #5
0
import logging
from portal import app

if __name__ == '__main__':
    app.debug = True
    handler = logging.FileHandler('flask.log', encoding='UTF-8')
    handler.setLevel(logging.DEBUG)
    logging_format = logging.Formatter(
        '%(asctime)s [%(module)s:%(funcName)s] [%(levelname)s]- %(message)s')
    handler.setFormatter(logging_format)
    app.logger.addHandler(handler)
    app.run(host='0.0.0.0', port=9530)
Example #6
0
import os

from portal import app as application

if __name__ == '__main__':
    application.run(
        host='127.0.0.1',
        port=int(os.environ.get('PORT', 8000)),
        debug=False,
    )
Example #7
0
#!/usr/bin/env python
import os
import sys


IP = os.environ.get('OPENSHIFT_PYTHON_IP', 'localhost')
PORT = int(os.environ.get('OPENSHIFT_PYTHON_PORT', 8080))

from portal import app as application


if __name__ == '__main__':
    application.run(IP, PORT)
Example #8
0
def run():
    app.run(debug = True)
Example #9
0
from portal import app

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

app.run(host='0.0.0.0', port=5000, debug=True)
#!/usr/bin/env python

import time
from portal import app

app.logger.info('{0} Application started'.format(time.ctime()))

if __name__ == "__main__":
    app.run(host='localhost')
Example #12
0
from portal import app

if __name__ == "__main__":
    app.run(host="0.0.0.0", debug=True, threaded=True)
Example #13
0
# Start up flask
from portal import app

app.run(host='0.0.0.0')
Example #14
0
from portal import app

if __name__ == '__main__':
    app.run(debug=True)
Example #15
0
#!/usr/bin/env python

from portal import app

if __name__ == '__main__':
    app.run(host='0.0.0.0',
            ssl_context=('./ssl/server.crt', './ssl/server.key'))
Example #16
0
from portal import app

app.run()
Example #17
0
from portal import app

app.run()