繁体   English   中英

无法将ASP.NET 5(ASP.NET Core 1)部署到Azure:没有足够的空间

[英]Unable to deploy ASP.NET 5 (ASP.NET Core 1) to Azure: not enough space

我试图从官方教程中部署基本的vanila Api应用程序,然后在Visual Studio Code中创建一个ASP.NET 5 Web应用程序到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.

跨平台免费/共享层解决方案

即使没有免费试用版,我们也可以将ASP.NET Core RC1应用程序发布到免费/共享的Azure Web应用程序。 使用dnu publish然后通过FTP进行部署。 跨平台工作。 我们不需要Visual Studio,msbuild,Web Deploy或免费的Azure试用版。

这是一个例子。

示例步骤

(1)将rc1-final与Core CLR一起使用。 (2)然后用Yeoman搭建应用程序。 (3)接下来,还原软件包。 (4)最后,发布应用程序; 确保在输出中包括active运行时。

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 App。 第一次部署大约需要15-20分钟,因为我们包括了每个软件包和运行时。

C:\MyApp\bun\output              /site

approot                          approot
log                                   
wwwroot                          wwwroot

我们需要将approotwwwroot发布到site目录。

结果示例

Azure上的Live Basic Web App。

正如Anthony Chew所说,这似乎是一个已知问题。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM