A vanilla Flask app for Azure WebApp publishing.
It follows Azure recommendation setup using Extension and web.config
FastCGI setup.
Currently this demo works best with Python 3.5.1 and does not work with 3.5.2
. see discussion
- Fork this repository to your account
- Create a WebApp. Basic tier recommended.
- In WebApp, turn on Diagnostics Logs if you want
- Switch to 64bit in Application Settings. (optional)
- Click Extensions and add
Python 3.5.1 (x64)
extension for x64 orPython 3.5.1 (x86)
extension for x86. - Setup Deployment options to forked GitHub repo
master
branch. - Click Advanced Tools menu.
- In top menu, click Debug Console > CMD
- Type
d:\home\python35\python.exe -m pip install --upgrade -r d:\home\site\wwwroot\requirements.txt
- In WebApp, open url in Overview.
- Azure WebApp+Python recommendation: https://blogs.msdn.microsoft.com/pythonengineering/2016/08/04/upgrading-python-on-azure-app-service/