Put a website in maintenance mode?

前端 未结 7 1064
春和景丽
春和景丽 2020-12-08 11:44

I\'ve developed my first web application which, surprisingly, is getting very popular.

Because the website is now live, I have a hard time doing some changes, in fe

相关标签:
7条回答
  • 2020-12-08 12:20

    This is the answer to your question: http://www.codeproject.com/Tips/219637/Put-the-website-in-Maintanance-Mode-Under-Construc

    0 讨论(0)
  • 2020-12-08 12:25

    I wish to avoid having a duplicated instance of the web application for testing.

    That's your problem right there. For anything but the most trivial sites, you should have a staging or development instance. You should be using source control and have a script to update the main instance.

    0 讨论(0)
  • 2020-12-08 12:25

    Besides building a dev replica of your website to build patches and fixes on, couldn't you just announce a site closing for maintenance several days in advance? I'm not a web programmer, but you might want look into what Hattrick, a popular online soccer management, does for maintaining their site. They use a notification system on the homepage, after users sign-in, that announces when maintenance will be taking place (usually late at night in Europe where a large portion of the players and all the devs are located) and they close down the website for a couple of hours. When they take the site down they post a page, using the same style as the rest of the site, and provide an estimate of when it will be up and running again. Simple, elegant, and when coupled with the long forewarning it seems to do a good job placating the user base.

    Give users a long heads up that planned maintenance is scheduled to take place and give them some idea what it is for and most people will be able to accommodate the down time. Nothing is more frustrating than purposefully going to a web app that was up and running 10-20 minutes ago to find it suddenly unavailable and down for maintenance.

    0 讨论(0)
  • 2020-12-08 12:25

    Try app_offline.htm ??

    0 讨论(0)
  • 2020-12-08 12:31

    There's no such built-in functionality in ASP.NET except app_offline.htm which doesn't quite fit your needs because even you will be denied access to the site. You have to build it on your own but this is best done on the routers and load balancers level than at the application level. Of course this will depend on your network architecture.

    0 讨论(0)
  • 2020-12-08 12:35

    What version of ASP.NET? I'm sure there are a million more elegant ways of doing this, but you can change the Default Document in IIS to redirect to Maint.html (or similar).

    0 讨论(0)
提交回复
热议问题