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
from noteapp.app import app if __name__ == "__main__": app.run(debug=True)
from noteapp.app import app if __name__ == '__main__': app.run(debug=True) # debug = True --> allows errors to show in console