Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法将ASP.NET 5(ASP.NET核心1)部署到Azure:空间不足_Asp.net_Azure_Asp.net Core - Fatal编程技术网

无法将ASP.NET 5(ASP.NET核心1)部署到Azure:空间不足

无法将ASP.NET 5(ASP.NET核心1)部署到Azure:空间不足,asp.net,azure,asp.net-core,Asp.net,Azure,Asp.net Core,我试图将官方教程中的基本vanila Api应用程序部署到Azure,但遇到了“磁盘空间不足”的问题。我是Azure新手,正在使用试用帐户 我可以做些什么使部署更加精简,并且不超过磁盘空间 完整错误堆栈: remote: Restore failed remote: There is not enough space on the disk. remote: remote: remote: Feeds used: remote: https://api.nuget.org/v3-flat

我试图将官方教程中的基本vanila Api应用程序部署到Azure,但遇到了“磁盘空间不足”的问题。我是Azure新手,正在使用试用帐户

我可以做些什么使部署更加精简,并且不超过磁盘空间

完整错误堆栈:

remote: Restore failed
remote: There is not enough space on the disk.
remote:
remote:
remote: Feeds used:
remote:     https://api.nuget.org/v3-flatcontainer/
remote: An error has occurred during web site deployment.
remote:
remote: Error - Changes committed to remote repository but deployment to website failed.

正如Anthony Chew所说,这似乎是一个众所周知的问题

我的解决方案是将订阅升级到Basic,这仍然是免费试用的一部分。

跨平台免费/共享层解决方案 即使没有免费试用,我们也可以将ASP.NET核心RC1应用程序发布到免费/共享的Azure Web应用程序。使用dnu发布,然后使用FTP部署。这是跨平台的。我们不需要VisualStudio、msbuild、Web部署,也不需要免费的Azure试用版

这里有一个例子

示例步骤 (1) 将rc1 final与核心CLR一起使用。(2) 然后将应用程序与。(3) 接下来,还原包。(4) 最后,发布应用程序;确保在输出中包含
活动的
运行时

C:\> dnvm use 1.0.0-rc1-final -runtime coreclr                       (1)
C:\> yo aspnet webbasic MyApp                                        (2) 
C:\MyApp> cd MyApp
C:\MyApp> dnu restore                                                (3)
C:\MyApp> dnu publish --configuration release -runtime active        (4)
包位于
MyApp\bin\output
目录中。使用FTP将其部署到免费/共享的Azure Web应用程序。第一次部署大约需要15-20分钟,因为我们包括每个包和运行时

C:\MyApp\bun\output              /site

approot                          approot
log                                   
wwwroot                          wwwroot
我们需要将
approot
wwwroot
发布到
站点
目录

示例结果

你的应用程序的大小是多少?我认为你需要创建一个块存储并将其分配给你的VM或应用程序服务,据我所知,默认情况下不包括它。按GB付费的块存储Git连续部署到免费/共享应用程序服务层时存在一个已知问题,没有足够的临时存储来恢复所有需要的包。一种解决方法是只从VisualStudio发布。。。