I have deployed a web app, but it is not accessible when trying to access it via its URL.In the Azure Web App Deployment Center the status shows the app deployed successfully and the status is "Active". However the Project, Repository, and Branch seem stuck at the "Loading..." step (see image). I am also seeing a blank screen when trying to check the site/wwwroot
directory. Is this a problem withe my pipeline YAML configuration?
Including the pipeline YAML code since the zip may not be extracting properly:
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
parameters:
- name: nodeVersion
type: string
default: '18.x'
- name: buildConfiguration
type: string
default: 'Release'
- name: appName
type: string
default: 'human-eval-web-app'
- name: azureSubscription
type: string
default: 'human-eval-azure-service-connect'
steps:
- task: NodeTool@0
inputs:
versionSpec: ${{ parameters.nodeVersion }}
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'Install dependencies and build'
- script: |
echo "Moving build output to $(Build.ArtifactStagingDirectory)/drop"
mkdir -p $(Build.ArtifactStagingDirectory)/drop
if [ -d "dist" ]; then
cp -R dist/* $(Build.ArtifactStagingDirectory)/drop
else
echo "dist directory not found"
exit 1
fi
displayName: 'Move build output'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/drop'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
displayName: 'Archive build output'
- script: |
echo "Listing contents of $(Build.ArtifactStagingDirectory)"
ls -R $(Build.ArtifactStagingDirectory)
displayName: 'List contents of Build.ArtifactStagingDirectory'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
ArtifactName: 'drop'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'drop'
targetPath: '$(Pipeline.Workspace)/drop'
- script: |
echo "Listing contents of $(Pipeline.Workspace)/drop"
ls -R $(Pipeline.Workspace)/drop
displayName: 'List contents of Pipeline.Workspace/drop'
- task: AzureWebApp@1
inputs:
azureSubscription: ${{ parameters.azureSubscription }}
appName: ${{ parameters.appName }}
package: '$(Pipeline.Workspace)/drop/$(Build.BuildId).zip'
displayName: 'Deploy to Azure Web App'