Beispiel #1
0
import os
from noteapp.app import app

if __name__ == '__main__':
    port = int(
        os.environ.get('PORT', 5000)
    )  #The port to be listening to — hence, the URL must be <hostname>:<port>/ inorder to send the request to this program
    app.run(host='0.0.0.0', port=port)  #Start listening
Beispiel #2
0
from noteapp.app import app
if __name__ == "__main__":
    app.run(debug=True)
Beispiel #3
0
from noteapp.app import app

if __name__ == '__main__':
    app.run(debug=True)  # debug = True --> allows errors to show in console