0

I am currently using PythonAnywhere to deploy my web2py project, it is working fine for me.

Now I want to deploy my web2py application on azure App service. I followed all the steps mentioned in below Goggle group

Creating web apps with Web2py in Azure Web Apps

Still I can see default page of azure python web app. I also tried to do it with same code base mentioned in given git repository.

I am unable to figure out which document I should refer or what are the right steps to deploy web2py project to Azure web app service.


Below are the steps I followed to deploy web2py project to Azure app service

  1. Created Azure app service with P1V2 app service plan. Linux machine with python 3.6 default language

  2. Selected local git repository in deployment center and pushed code to azure git repository. It shows deployment successful message

enter image description here

  1. Browse azure website, but this time it is not showing expected landing page. It is showing me default app page of azure website

I tried steps 3-4 times but everytime I am getting same result. Am I missing something here?

Prasad Telkikar
  • 15,207
  • 5
  • 21
  • 44

1 Answers1

1

I reviewed the forum thread Creating web apps with Web2py in Azure Web Apps of Google Groups as you mentioned, I see there is a file named web.config in its attachments, as the figure below.

enter image description here

However, the discussion is too old at 2015-11-13. At that time, Azure only supports Windows for Azure App Services, but you were trying to reproduce it on Azure WebApp for Linux based on Docker, because P1V2 Sku is for Linux and Standard S1 for Windows, as the figures below.

P1V2 Sku of Azure App Service Plan for Windows

enter image description here

Standard S1 Sku of Azure App Service Plan for Windows

enter image description here

So if you want to reproduce the same application of the thread of Google Groups on Azure WebApp for Windows, please try to refer to my answer for the other SO thread No pip or python module inside azure webapp. There is not any Azure offical document introduce how to deploy a Python application on Azure Windows WebApp.

Otherwise, please refer to the two Azure offical documents Quickstart: Create a Python app in Azure App Service on Linux and Configure a Linux Python app for Azure App Service to try to change and deploy it on Azure Webapp for Linux. Even that you need to follow the document Configure a custom Linux container for Azure App Service to create a custom docker image for deployment.

Peter Pan
  • 23,476
  • 4
  • 25
  • 43
  • Superb Peter, it worked. Thanks a lot. I used windows operating system and used sample app deployment now I can see Default landing page.. Cheers.. Once I am done with complete deployment I will write blog and will share with you.. Thanks a lot – Prasad Telkikar Jan 15 '20 at 13:13