Exemple #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
Exemple #2
0
from noteapp.app import app
if __name__ == "__main__":
    app.run(debug=True)
Exemple #3
0
from noteapp.app import app

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