Moving local .whl file to a folder on Azure Web Apps accessed via Kudu (Web Apps' DebugConsole)

不打扰是莪最后的温柔 提交于 2019-12-23 04:54:08

问题


I'm trying to migrate my Django website from Heroku to Azure. I'm using 'Azure Web Apps', where installing postgresql from my requirements.txt requires a little bit of gymnastics. I can't directly install the package via pip, I instead had to create a wheel and manually include that in my repository.

I'm halfway done. I have psycopg2-2.6.1-cp27-none-win32.whl ready on my local machine. Regarding what to do next, my question is: how do I copy the .whl file to the relevant folder via Kudu on https://mysite.scm.azurewebsites.net/DebugConsole? Is there a command for this that'll copy the file from my local machine onto Azure Web Apps?


p.s. the folder I'm copying it to is D:\home\site\wwwroot\env\Scripts\wheelhouse\, I hope someone can verify this makes sense.


回答1:


There's nothing to this except good old FTP.

In the Azure Web App dashboard in your management portal, go to 'deployment credentials' and and set an FTP/username and password. Use this pair to connect to the required folders via any FTP client of your choosing. Once in, drag and drop at the relevant location!

Moreover, the correct location to place the .whl files is D:\home\site\repository\wheelhouse\



来源:https://stackoverflow.com/questions/33993905/moving-local-whl-file-to-a-folder-on-azure-web-apps-accessed-via-kudu-web-apps

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