Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

Azure Dev Ops - Site Under Construction Page during Web App Deployment

I have a .NET MVC Website that gets automatically deployed based on a GIT repository checkin. (Azure Dev ops Pipeline)

When the website is being deployed, if I got to the website URL. I get a blank page with a "Site Under Construction title" page. After the deployment is complete, this page goes away and I see my site.

What I want to know is how can I customise this Under construction page. If I add a app_offline.htm file in the root of my visual studio project. I seem to see this file when deploy is happening, but when its finished, the file is still there, and I can't see the site.

Do I need to make a change to my build pipeline somehow? or make a change to my web-app configration?

What do I need to do to have this file displayed only during the deployment.

question from:https://stackoverflow.com/questions/66056084/azure-dev-ops-site-under-construction-page-during-web-app-deployment

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

UPDATE

1. Invoking MsDeploy.exe manually in a Azure Devops

2. App_Offline in MSBuild Remote Web Deploy

PRIVIOUS

You can configure it in .pubxml file. That is actually used to take your app offline while deploying. After finishing deployment, MSDeploy tool should delete APP_OFFLINE.html automatically.

<PropertyGroup>
  <EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>
  ...
</PropertyGroup>

Related posts:

1. ?? Automatize App Offline in Azure App Service and Visual Studio

?? tlejmi's answer is very detailed.

2. How to take web app offline while publishing?

3. Getting site under construction message after azure webapp deployment


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...