from portal import app if __name__ == '__main__': app.run(host='0.0.0.0', debug=True)
#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)
#!/usr/bin/env python from portal import app if __name__ == '__main__': app.run(host='localhost', ssl_context=('./ssl/server.crt', './ssl/server.key'))
from portal import app if __name__ == "__main__": app.run(host='0.0.0.0', port=8000)
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)
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, )
#!/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)
def run(): app.run(debug = True)
from portal import app app.run(debug=True)
#!/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')
from portal import app if __name__ == "__main__": app.run(host="0.0.0.0", debug=True, threaded=True)
# Start up flask from portal import app app.run(host='0.0.0.0')
from portal import app if __name__ == '__main__': app.run(debug=True)
#!/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'))
from portal import app app.run()