什么参数在此dnvm.ps1命令显示未定义?部署天青网站失败结果 [英] What parameters are showing undefined in this dnvm.ps1 command? Deployment to Azure Web Site Fails as a result

查看:213
本文介绍了什么参数在此dnvm.ps1命令显示未定义?部署天青网站失败结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发Linux上的一个新的ASP.NET 5(MVC 6)网站。

I have been developing a new ASP.NET 5 (MVC 6) website on Linux.

我使用Git与Azure和已经能够成功地将其推到供应链管理。但是我的部署,由于一些不确定的参数失败。

I am using Git with Azure and have been able to successfully push it to SCM. However my deployment fails due to some undefined parameters.

希望有人能告诉我是什么不确定的参数是在终端输出显示的命令,所以我可以修改脚本,完成这个过程。

Hoping someone can tell me what the undefined parameters are in the command shown in the terminal output so I can modify the script and finish this process.

我运行命令

# git push azure master

下面是输出,成功后提交自动部署应该发生。

The following is the output, auto deployment should happen after a successful commit.

在这里输入的形象描述

在提交作品,但,当它试图运行下面的命令失败。

The commit works but when it tries to run the following command it fails.

dnvm.ps1' " install undefined -arch undefined -r undefined

我相信这是由

#  azure site deploymentscript mysite --aspNet5 project.json 

这之后,成功提交被触发

that is triggered after a successful commit

推荐答案

在生成你的 deploy.cmd 您需要的版本,拱通过,CLR或CoreCLR

when you generate your deploy.cmd you need to pass in the version, arch, and CLR or CoreCLR

azure site deploymentscript mysite --aspNet5 project.json --aspNet5Version <version> --aspNet5Runtime <CLR|CoreCLR> --aspNet5Architecture <x64|x86>

因此​​,例如为 1.0.0-RC1决赛在32位运行 CoreCLR 你需要

azure site deploymentscript mysite --aspNet5 project.json --aspNet5Version 1.0.0-rc1-final --aspNet5Runtime CoreCLR --aspNet5Architecture x86

这是一个错误,发电机允许在第一个地方发生。我还没有修复它,但随意打开一个问题 https://github.com时间/ projectkudu / KuduScript /问题但据我所知事情会这样,我等待着与RC2改变。

It's a bug that the generator allows that to happen in the first place. I haven't had the time to fix it, but feel free to open an issue https://github.com/projectkudu/KuduScript/issues but as I understand things are going to change with RC2 so I was waiting for that.

另外请记住,AZURE应自动生成正确的 deploy.cmd 如果你没有在那里。你真的只需要自己生成它,如果有,你需要有生成的一个有些特殊的逻辑,不会是汽车的一个部分。

Also keep in mind that azure should auto generate the right deploy.cmd if you don't have it there. You really only need to generate it yourself if there is some special logic that you need there that won't be a part of the auto generated one.

这篇关于什么参数在此dnvm.ps1命令显示未定义?部署天青网站失败结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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