question

ThiruPraturi-1959 avatar image
0 Votes"
ThiruPraturi-1959 asked Gabe-0367 answered

i am trying to deploy Python application using Streamlit package. https://tspchart1.azurewebsites.net

I followed your directions precisely and created Dockerfile, requirements.txt and did everything according to instructions.
At the end of it, I see that Deployment is successful..
However, I don't understand why my webpage wouldn't launch - it still takes me to defaul "Deploy center"..
Please help

azure-webapps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if you have chance to see above response.

0 Votes 0 ·

Checking in to see if the above answer helped. If the above answer was helpful, kindly do ‘Accept as answer' and/or ‘Vote as helpful’ the post for benefitting the other users with a similar issue.

0 Votes 0 ·
SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

Thanks for asking question! If you are seeing the default app after deploying your own app code to App Service try restarting the App Service and wait 15-20 seconds, and check the app again.

Try using SSH to connect directly to the App Service container and verify that your files exist under site/wwwroot. If your files don't exist, use the following steps:
Create an app setting named SCM_DO_BUILD_DURING_DEPLOYMENT with the value of 1, redeploy your code, wait a few minutes, then try to access the app again.

For more information on creating app settings, see Configure an App Service app in the Azure portal.

Also, review your deployment process, check the deployment logs, correct any errors, and redeploy the app.

If your files exist, then App Service wasn't able to identify your specific startup file. Check that your app is structured as App Service expects for Django or Flask, or use a custom startup command.

Reference: https://docs.microsoft.com/en-us/azure/app-service/configure-language-python#troubleshooting

Let us know if issue persists.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Gabe-0367 avatar image
0 Votes"
Gabe-0367 answered

Hi ThiruPraturi, not sure if it can help, but I’ve created a simplified guide here: shorturl.at/nuFXY

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.