maintenance

What is the Best Practice to Kick-off Maintenance Process on ASP.NET [closed]

笑着哭i 提交于 2019-12-18 10:46:28
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . Given an ASP.NET application, I need to run a maintenance process on a regular basis (daily, hourly, etc.). What's the best way to accomplish this without relying on an external process like a scheduled task on the server (assume I don't have access to the server - shared

Implement “Down for maintenance” page

泄露秘密 提交于 2019-12-18 10:29:56
问题 I know we could simply use an app_offline.htm file to do this. But I want to be able access the website if my IP is 1.2.3.4 (for example), so that I can do a final testing. if( IpAddress != "1.2.3.4" ) { return Redirect( offlinePageUrl ); } How can we implement this in ASP.NET MVC 3? 回答1: You can use a catch-all route with a RouteConstraint with the IP check: Make sure you put the offline route first. routes.MapRoute("Offline", "{controller}/{action}/{id}", new { action = "Offline",

Do you have health checks in your web app or web site? [closed]

岁酱吖の 提交于 2019-12-18 10:07:29
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have built PHP based "health check" scripts for several projects in the past, but they were always custom-made for the occasion and

What are some good strategies to allow deployed applications to be hotfixable?

时光总嘲笑我的痴心妄想 提交于 2019-12-18 04:08:16
问题 In an ideal world, our development processes would be perfect, resulting in regular releases that were so thoroughly tested that it would never be necessary to "hotfix" a running application. But, unfortunately, we live in the real world, and sometimes bugs slip past us and don't rear their ugly heads until we're already busy coding away at the next release. And the bug needs to be fixed Now . Not as a part of the next scheduled release. Not tonight when the traffic dies down. Now . How do

How can I copy data records between two instances of an SQLServer database

馋奶兔 提交于 2019-12-17 22:26:49
问题 I need to copy some records from our SQLServer 2005 test server to our live server. It's a flat lookup table, so no foreign keys or other referential integrity to worry about. I could key-in the records again on the live server, but this is tiresome. I could export the test server records and table data in its entirety into an SQL script and run that, but I don't want to overwrite the records present on the live system, only add to them. How can I select just the records I want and get them

Put a website in maintenance mode?

梦想与她 提交于 2019-12-17 17:57:16
问题 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 fear some people are still logged in and are using the application. I wish to avoid having a duplicated instance of the web application for testing. Is there any way to put the website in 'maintenance mode' with only me having access to it? Like redirecting to a page with some info, telling its in maintenance mode. Thanks. :-) 回答1:

Syntax check all stored procedures?

浪尽此生 提交于 2019-12-17 15:33:23
问题 i want to ensure that all stored procedures are still syntactically valid. (This can happen if someone renames/deletes a table/column). Right now my solution to check the syntax of all stored procedures is to go into Enterprise Manager, select the first stored procedure in the list, and use the procedure: Enter Alt+C Escape Escape Down Arrow Goto 1 It works, but it's pretty tedious. i'd like a stored procedure called SyntaxCheckAllStoredProcedures like the other stored procedure i wrote that

Deleting millions of rows in MySQL

陌路散爱 提交于 2019-12-17 15:13:07
问题 I recently found and fixed a bug in a site I was working on that resulted in millions of duplicate rows of data in a table that will be quite large even without them (still in the millions). I can easily find these duplicate rows and can run a single delete query to kill them all. The problem is that trying to delete this many rows in one shot locks up the table for a long time, which I would like to avoid if possible. The only ways I can see to get rid of these rows, without taking down the

Parallel development in Java and C#

别说谁变了你拦得住时间么 提交于 2019-12-12 09:01:18
问题 I am maintaining two very similar schedulers - one in Java and one in C#. The C# version was originally created using JLCA and then modified by hand. The Java version has been modified quite significantly over the last few weeks by someone else (so I have to track down his changes), and I am wondering whether to reconvert it using one of the tools available on the Internet, or whether to just try to make the changes by hand each time the need arises. This problem may well come up frequently

Tips for cleaning and maintaining a big css file

六月ゝ 毕业季﹏ 提交于 2019-12-12 07:56:43
问题 I just started this new job, where as the designer I have to maintain the CSS file for our web app. Right now it spans almost 7000 lines, weights over 160kb and has hundreds of !important rules. I would like to reorganize the file, split it into sub sections, clean it, and homogenize its syntax. But it seems like a huge undertaking and the file and the app are so big and complex that I wonder if it is even doable without breaking something (and not seeing it). I have audited the file using