Application Error while deploying flask app to Azure - flask

I am trying to deploy flask based app to Azure. The app is working fine locally but I get Application error on Azure.
I checked the docker logs and found that container does'nt respond to the port.
I have tried changing port by configuring WEBSITE_PORT, still same issue.
enter image description here

Related

In localhost node app is running fine but after pushing in CF and registered in Mindsphere pages showing 404 status

Im new to Cloud Foundry and Mindsphere. My node application is running good in the local host.
After uploading to Cloud Foundry and registered in mindsphere. The files are not loading. Even the CSS file also showing the 404 Status(in the network).
How can load all files?Whats Wrong i'm doing here?
The following is my Localhost (loading files):
The following is After I upload and registered URL:
Thanks in advance

I changed codes in the running django project on the aws but changes are not reflecting

I have a running Django project on an AWS server with the website hosted on the same server. I changed some code and uploaded it to the server using SFTP server but changes are not reflecting on the website and uploaded file is not working.
Restart your server (Apache, NGINX, or any other server that you are using).

Django's development server on Ubuntu not accessible via browser, only via -curl

I am trying to set up a Django website on an Ubuntu server hosted on DigitalOcean.
After following the step-by-step DigitalOcean tutorial here: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
I remain stuck as I cannot seem to access Django's development server launched on 0.0.0:8000 with the browser of my local machine. However, I do have a response using -curl from the server's bash terminal. So it seems it can only be accessed from the server itself. Django does not return any error while launching the development server. It lists successful connections (code 200) every time I access it via -curl, but does not show anything when I try to access it via my external browser, as if it is actually not being acecssed.
What I did:
followed this tutorial step-by-step until the launch of Django's development server,
disabled Ubuntu's firewall and no DO firewall is used
added '*' in ALLOWED_HOSTS in settings.py
Any ideas? Thank you very much!

What are the localhost URLs for OpenShift hosted Django apps

I created a Django application locally and then using the django openshift template from
here I uploaded it to OpenShift successfully. Now I'm trying to work on the local repository for adding additional features but when I run the server locally, I get a bad url error.
What I would like to know is how do I locally host a OpenShift Django App?
I also tried rhc tail -a appname but that only gets me a small amount of debug info If I can't locally host it then is there a way with which I can see the python print() output for the app hosted on OpenShift?

Can't host localhost create Django application in Openshift

I have Django-1.6 connected to Mysql and running in my local-host. I push that asowac project to github to host in open-shift. Then I created a application called asowac-attsoc.rhcloud in open-shift and connect it to the github asowac repository. But now it show me 404 error when go the URL. What is the reason for this and how can I fix this error?
This is the error