如何在后台运行iisexpress而不阻止脚本? [英] How to run iisexpress in the background without blocking script?

查看:79
本文介绍了如何在后台运行iisexpress而不阻止脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试在Appveyor构建期间运行iisexpress,以运行集成测试.但是,脚本在开始/wait iisexpress/path:%APPVEYOR_BUILD_FOLDER%/port:%iis_port%处被阻止.我的Windows脚本编写技能不如我希望的那样,并且Google到目前为止还不够友好.这是下面有关脚本的部分内容:

  cd \ Program Files \ IIS Express开始/等待iisexpress/路径:%APPVEYOR_BUILD_FOLDER%/端口:%iis_port%回显开始操作"; 

以下是脚本阻止的地方


(来源:

I am currently trying to run iisexpress during appveyor build in order to run integration tests. However the script gets blocked at start /wait iisexpress /path:%APPVEYOR_BUILD_FOLDER% /port:%iis_port%. My windows scripting skills are not as good as I hoped and google has not been friendly so far. Here is the concerned bit of the script below:

cd \Program Files\IIS Express

start /wait iisexpress /path:%APPVEYOR_BUILD_FOLDER% /port:%iis_port%

echo "Start operations"

Here is a capture of where the script blocks


(source: iamnguele.com)

Any help is welcome.

解决方案

I found what was the issue, actually I needed to add the parameter -PassThru to have the process running in the background.

Here is my updated code:

cd \Program Files\IIS Express

start /wait iisexpress /path:%APPVEYOR_BUILD_FOLDER% /port:%iis_port% -PassThru

echo "Start operations"

And the new result:

这篇关于如何在后台运行iisexpress而不阻止脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆