Azure Web App (MVC 6) continuous deployment fails

梦想的初衷 提交于 2019-12-01 22:16:21
Samuli Haverinen

The problem occurred because I had run azure site deploymentscript --aspNet5 <path to the project.json file> that generates deploy.cmd file locally. That file is then used by the Azure deployment if it exists. The local deploy.cmd had undefined parameters due to a bug in the generator. Removing the deploy.cmd solved this issue.

I ended up having to explicitly specify these as arguments when re-running the deployment script generator.

azure site deploymentscript --aspNet5 sr\[myprojectfolder]\ --aspNet5Version 1.0.0-rc1-update1 --aspNet5Architecture x64 --aspNet5Runtime CLR

As specifying them in the global.json first as suggested by automatonicand then re-running didn't have any effect, I assume this is a bug.

Your global.json file can define a runtime and an architecture:

{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-rc1-update1",
    "runtime": "clr",
    "architecture": "x64"
  }
}

I am guessing the scripts are pulling from those values and don't know how to cope with them being missing from global.json?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!