简体   繁体   中英

Django Web app is successfully deployed on Azure App Service Linux but can only see Azure Default Page

I recently published my Django local git repo to the Azure App Service with Python 3.7 runtime. The deployment said it is successful and active but I only see Azure Default Page when I browse it.

I can't find any logs anywhere and it shows no signs of errors. How can I solve this ?

UPDATE: My Azure Configuration settings does not have option for setting the default page setting. The web app I am deploying is for Django and not for ASP

Thanks and regards, Rachhek.

Ok. I will answer the question here. Check the deafult document section of the Web App.

Make sure you default page is listed in here and is above hostingstart.html

https://i.imgur.com/FKzFULD.png

I am answering my own question. I solved the problem by fixing the gunicorn bind settings. My guess is by default it pointed to wsgi in some other directory.

I added the following startup command to the general settings of the Web App Configuration

gunicorn -w 2 -b 0.0.0.0:8000 --chdir /home/site/wwwroot/appname appname.wsgi:application 

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM