[英]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
我們需要將approot
和wwwroot
發布到site
目錄。
正如Anthony Chew所說,這似乎是一個已知問題。
我的解決方案是將我的訂閱升級為Basic-仍然是免費試用的一部分。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.