将生产服务器从ASP.NET 2升级到ASP.NET 4(Upgrade production server from ASP.NET 2 to ASP.NET 4)
我有一台生产服务器(Windows Server 2003 SP2),在IIS6下运行多个ASP.NET 2应用程序。 新的应用程序使用ASP.NET MVC 3(Razor)和Entity Framework 4开发。旧应用程序不会被触及。
显然,以下组件需要升级:
- .NET框架(与现有的1.0,2.0,3.5SP1并排安装4.0)
- ASP.NET(与2.0并排安装v.4)
我想保留IIS6以避免意外,但需要为MVC 3路由进行配置
在这种情况下哪个安装程序是最合适的? 从MS中可以找到太多不同的 - 完整的,客户端配置文件,网络平台安装程序等等。(目标一是不打破现有的应用程序,并将停机时间保持在合理的最小值。
I have a production server (Windows Server 2003 SP2), running several ASP.NET 2 apps under IIS6. New applications are developed using ASP.NET MVC 3 (Razor) and Entity Framework 4. Old applications are not to be touched.
Clearly, the following components need to be upgraded:
- .NET framework (install 4.0 side by side with existing 1.0, 2.0, 3.5SP1)
- ASP.NET (install v.4 side by side with 2.0)
I want to keep IIS6 to avoid surprises, but it needs to be configured for MVC 3 routing
Which installer(s) is the most appropriate in this case? There are too many different ones available from MS - full, client profile, web platform installer etc :( Goal number one is the not to break existing apps and keep downtime to a reasonable minimum.
原文:https://stackoverflow.com/questions/8452074
最满意答案
这是一个似乎可以捕获大多数边缘情况的答案。 未彻底测试。
[alias] rlog = !"git --no-pager log --all --graph --decorate --oneline --color=always | tac | awk -f ~/switchslashes.awk | less -X +G -r"
文件
~/switchslashes.awk
包含的位置{ match($0,/([[:space:][:cntrl:]|*\/\\]+)(.*)/,a) # find the segment of the graph tgt = substr($0,RSTART,RLENGTH) # save that segment in a variable tgt gsub(/\//,RS,tgt) # change all /s to newlines in tgt gsub(/\\/,"/",tgt) # change all \s to /s in tgt gsub(RS,"\\",tgt) # change all newlines to \s in tgt gsub(/_/,"¯",tgt) # change all _ to ¯ in tgt print tgt substr($0,RSTART+RLENGTH) # print tgt plus rest of the line }
这是此脚本的修改版本。 它用下划线替换下划线,用反斜杠替换掉下斜杠,反之亦然。 这修复了文本被
tac
反转后的图形。放弃
我从来没有开始使用它,因为它对于更大的存储库来说速度很慢。 它需要加载所有内容然后应用替换,这需要花费太多时间来满足我的需求。
This is an answer that seems to catch most edge cases. Not tested thoroughly.
[alias] rlog = !"git --no-pager log --all --graph --decorate --oneline --color=always | tac | awk -f ~/switchslashes.awk | less -X +G -r"
where the file
~/switchslashes.awk
contains{ match($0,/([[:space:][:cntrl:]|*\/\\]+)(.*)/,a) # find the segment of the graph tgt = substr($0,RSTART,RLENGTH) # save that segment in a variable tgt gsub(/\//,RS,tgt) # change all /s to newlines in tgt gsub(/\\/,"/",tgt) # change all \s to /s in tgt gsub(RS,"\\",tgt) # change all newlines to \s in tgt gsub(/_/,"¯",tgt) # change all _ to ¯ in tgt print tgt substr($0,RSTART+RLENGTH) # print tgt plus rest of the line }
which is a modified version of this script. It replaces underscores with overlines and swaps slashes with backslashes and vice versa. This fixes the graph after the text has been reversed by
tac
.Disclaimer
I never started using this, since it is slow with larger repositories. It needs to load everything and then apply the substitutions, which take too much time for my taste.
相关问答
更多-
它在运行maven-release-plugin 2.2及更低版本时有效。 事实证明,当版本插件介于版本2.3-2.5之间时,maven-release-plugin和maven-buildnumber-plugin之间存在某种冲突(2.5是本文撰写时的最新版本)。 我不确定错误的原因究竟是什么,但是日志显示release-plugin在这些版本中执行额外的git命令,它以某种方式导致buildnumber插件在其失败后立即运行。 具体来说,它运行git ls-remote ssh://git@repona ...
-
你应该等一下 或者你可以这样做: /tmp/x 604% env GIT_AUTHOR_DATE='Wed Dec 19 15:14:05 2029 -0800' git commit -m 'future!' [master]: created 6348548: "Future!" 1 files changed, 1 insertions(+), 0 deletions(-) /tmp/x 605% git log Author: Dustin Sallings
... -
颜色在git-log(Color in git-log)[2021-09-08]
从git 1.8.3(2013年5月24日)开始,您可以使用%C(auto)以git log格式字符串来装饰%d 。 从发行说明 : * "git log --format" specifier learned %C(auto) token that tells Git to use color when interpolating %d (decoration), %h (short commit object name), etc. for terminal output.) As of ... -
如何使git-diff和git日志忽略新的和删除的文件?(How to make git-diff and git log ignore new and deleted files?)[2023-09-14]
--diff-filter选项适用于diff和log。 我使用--diff-filter=M很多,它限制差异输出只是内容修改。 要检测重命名和副本,并在diff输出中使用这些命令,您可以分别使用-M和-C以及R和C选项来进行--diff-filter 。 The --diff-filter option works with both diff and log. I use --diff-filter=M a lot which restricts diff outputs to only content ... -
这是一个有效的jsFiddle 。 您需要在scrollDown事件scrollDown 0%更改为0% 。 function winScroll(){ var op = 1 - ($(document).scrollTop() / slider.offsetHeight); } $(document).ready(function(){ $("#scrollDown a").live('click',function(e){ console.log('test'); ...
-
您要查找的格式是%ad 。 所以你可以尝试: git log --date=short --pretty=format:'%ad' 如果您想查看提交消息,请尝试%ad %s 。 Pretty Formats部分中的更多选项: http : //git-scm.com/docs/git-log 问候 The format you are looking for is %ad. So you can try: git log --date=short --pretty=format:'%ad' If you w ...
-
如何让格式字符串中的git-log颜色多行占位符值?(How to let git-log color multiline placeholder values in format string?)[2022-06-22]
我在此期间提出的一个解决方案是以下Bash脚本片段: function foobar { local -r committish="${1:-HEAD}" local -r tput_app="$(type -p tput)" if [[ -n $tput_app ]]; then local -r color_cyan="$("$tput_app" setaf 6)" local line='' while read -r line; do printf ' ... -
使用引导程序,使幻灯片向上和向下滚动,而不是向左或向右滚动(Using bootstrap,make slide to scroll up and down, not left or right)[2023-07-28]
你可以用按钮制作它,我不知道你是否想要它。 创建一个名为extra.js的文件,将以下代码放入其中: $(document).ready(function(){ $('a[href^="#"]').on('click',function (e) { e.preventDefault(); var target = this.hash, $target = $(target); $('html, body').stop().anima ... -
这是一个似乎可以捕获大多数边缘情况的答案。 未彻底测试。 [alias] rlog = !"git --no-pager log --all --graph --decorate --oneline --color=always | tac | awk -f ~/switchslashes.awk | less -X +G -r" 文件~/switchslashes.awk包含的位置 { match($0,/([[:space:][:cntrl:]|*\/\\]+)(.*)/,a) # f ...
-
如果git检测到它的输出很长,它会通过寻呼机发送它。 通常情况下,这样会less ,但在您的情况下看起来more差的是使用more 。 您可以通过PAGER环境变量设置首选寻呼机。 尝试使用echo $PAGER查看它的设置,并将export PAGER=less (或只是export PAGER= )添加到shell启动文件中以进行更改。 (不要将它设置为vim ; vim是一个编辑器,而不是一个寻呼机,你不能把东西管道进去。) If git detects that its output will be ...