Example #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)
Example #2
0
from testapp import app
app.run(debug=True)
from testapp import app
if __name__ == "__main__":
    app.run()
Example #4
0
from testapp import app
app.run(host='0.0.0.0', port=8080)
Example #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)