예제 #1
0
파일: run.py 프로젝트: macanhhuy/setman
#!/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)
예제 #2
0
from testapp import app
app.run(debug=True)
예제 #3
0
from testapp import app
if __name__ == "__main__":
    app.run()
예제 #4
0
from testapp import app
app.run(host='0.0.0.0', port=8080)
예제 #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)