Muthu mani
Muthu mani

Reputation: 45

how to display the app_offline page when i deploy this projects in azure devops in iis?

my project is published successfully but I want to display the app_offline page when I deploy the project. I have created the app_offline.htm file and I don't know where this file is placed in a directory

Root Directory app_offline page

Upvotes: 0

Views: 1554

Answers (2)

Muthu mani
Muthu mani

Reputation: 45

add these two items "copy files" app_offline.htm before deploying and the "delete files" item can be deleted after deployment is complete.add file and delete

Upvotes: 0

wallezzi
wallezzi

Reputation: 359

You could enable "Take App Offline" option in the IIS Web App Deploy task. enter image description here This option points that taking the Web App offline by placing an app_offline.htm file in the root directory of the Web App before the sync operation begins. The file will be removed after the sync operation completes successfully. So you need to place this file in the root directory of the Web App in your local physical path.

Upvotes: 1

Related Questions