Flask app doesn't builds on MS Azure cloud
<p>I want to deploy my flask web application on Azure cloud. In Deployment options, I have selected GitHub as source destination for my flask code. after doing the configuration test successfully, the init.py file now starts building;<a href="http://i.stack.imgur.com/9vwfW.png" rel="nofollow"><img src="http://i.stack.imgur.com/9vwfW.png" alt="enter image description here"></a></p>

<p>Now when I go to my application link, it shows me this;<a href="http://i.stack.imgur.com/tWZfD.png" rel="nofollow"><img src="http://i.stack.imgur.com/tWZfD.png" alt="enter image description here"></a></p>

<p>Now at this point, I went back to my deployment options, it says Building failed;
<a href="http://i.stack.imgur.com/Yjhyf.png" rel="nofollow"><img src="http://i.stack.imgur.com/Yjhyf.png" alt="enter image description here"></a></p>

<p>the log generated for this building failed can be seen in the first picture. All the tests has passed except the last one "Performance test". Have anyone encountered the same issue before ? what can be the reason for that ?</p>

<p>I am running the application on localhost @ port 8000.</p>

<pre><code>from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
  return "Hello World!"

if __name__ == "__main__":
  app.run()
</code></pre>

<p>Do I need to run it on another IP ? </p>

<p>You cannot listen on port 8000 in Web Apps. Only port 80 or 443. You'll need to read the port number from the environment, to know what to listen on.</p>

python azure flask azure-web-sites