Im currently trying to deploy a flask app to a Azure Web App using continuous integration on Visual Studio Team Services.
I have completed the following
- Set up an Web App in Azure
- Created a build which packages the flask app into a zip
- Created a release definition using the "Deploy Python Flask App to Azure App Service". This installs python and deploys an azure app service. I have left everything as default
Within the definition there is an Inline Script Which has the following properties
if NOT exist requirements.txt ( echo No Requirements.txt found. EXIT /b 0 ) if NOT exist "%PYTHON_EXT_PATH%" ( echo PYTHON_EXT_PATH not avaliable or path not set. >&2 EXIT /b 1 ) echo Installing dependencies call "%PYTHON_EXT_PATH%" -m pip install -U setuptools if %errorlevel% NEQ 0 ( echo Failed to install setuptools >&2 EXIT /b 1 ) call "%PYTHON_EXT_PATH%" -m pip install -r requirements.txt if %errorlevel% NEQ 0 ( echo Failed to install dependencies via pip >&2 EXIT /b 1 )
When i run the release definition i get an error saying
PYTHON_EXT_PATH not avaliable or path not set.
I cant seem to find any documentation to suggest how to set this path up. I've tried including it in the web config and I've also tried setting it in the environment variables.
Can anyone explain what im missing?
Thanks