Esempio n. 1
0
import os
from reverse import app

if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))
    app.run(debug=True)
Esempio n. 2
0
# run.py

import os

from reverse import app

if __name__ == "__main__":
    port = int(os.environ.get('PORT', 5000))
    # app.run(host='0.0.0.0', port=port)
    app.run(host='0.0.0.0', port=port, debug=True)
Esempio n. 3
0
import os
from reverse import app


if __name__ == "__main__":
    port = int(os.environ.get("PORT", 5000))
    app.run(debug=True)
Esempio n. 4
0
# run.py


import os

from reverse import app


if __name__ == "__main__":
    port = int(os.environ.get('PORT', 5000))
    # app.run(host='0.0.0.0', port=port)
    app.run(host='0.0.0.0', port=port, debug=True)
Esempio n. 5
0
from reverse import app

import os

if __name__ == "__main__":
    FLASK_CI = os.getenv("FLASK_CI")

    if not FLASK_CI:
        app.run(debug=True, port=5000)
    else:
        print("FLASK_CI: app.run() would have worked.")