I'm using Azure DevOps with the "Azure App Service Deploy" task (AzureRmWebAppDeployment@3) to deploy to an Azure Web Site and am having trouble deploying to the web root.
The application is PHP and has a "public" folder which is designed to be the only folder to be exposed publicly. The folder structure is like this:
/
application/
vendor/
public/
index.php
favicon.ico
images/
etc...
When I configure Azure App Service Deploy task with the "Virtual application" setting to "" (as in blank), it actually appears to default to the "/" virtual application.
This is problematic as the default application ("/") should be pointing to /sites/wwwroot/public/
such that the index file is at /sites/wwwroot/public/index.php
.
What happens in this setup is that the deploy task appears to default to "/" when the "Virtual application" setting is left blank, which results in deploying to /sites/wwwroot/public
so that my index file is at /sites/www/root/public/public/index.php
(which would be accessible on the web at https://app.azurewebsites.net/public/index.php)
How can I deploy the application to the web root /sites/wwwroot/
such that my index file is located at /sites/wwwroot/public/index.php
on disk?
Azure DevOps
App Service