Ejemplo n.º 1
0
#!/usr/bin/env python
#
# Simple runner of Flask test application.
#

import sys

from testapp import app


if __name__ == '__main__':
    host, port = '0.0.0.0', 4332

    if len(sys.argv) == 2:
        port = sys.argv[1]

        if ':' in port:
            host, port = port.split(':')

        port = int(port)

    app.run(debug=True, host=host, port=port)
Ejemplo n.º 2
0
from testapp import app
app.run(debug=True)
Ejemplo n.º 3
0
from testapp import app
if __name__ == "__main__":
    app.run()
Ejemplo n.º 4
0
from testapp import app
app.run(host='0.0.0.0', port=8080)
Ejemplo n.º 5
0
#!/usr/bin/env python
#
# Simple runner of Flask test application.
#

import sys

from testapp import app

if __name__ == '__main__':
    host, port = '0.0.0.0', 4332

    if len(sys.argv) == 2:
        port = sys.argv[1]

        if ':' in port:
            host, port = port.split(':')

        port = int(port)

    app.run(debug=True, host=host, port=port)