我已经从github存储库中设置了连续部署,并且部署成功,但是当我导航到site.azurewebsites.net时,我得到了“您没有权限查看这个目录或页面。
下面是运行的部署脚本和项目结构生成脚本
DeploymentScript
项目结构是
|Core Folder
| Project Folder
| src
| Project1
| wwwroot
| files
| program.cs
| project.json
| other files...
|.deployment
The deployment points to Projectfolder/src/Project1发布于 2016-07-08 18:52:50
我必须调整发布脚本才能使其正确发布:
"publishOptions": {
"include": [
"wwwroot",
"web.config"
]
},
"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},
"tooling": {
"defaultNamespace": "Web"
}
}与上面类似的东西使它能够正确部署--在根文件夹中使用正确的部署脚本。
https://stackoverflow.com/questions/37820826
复制相似问题