移动本地文件.whl通过捻访问在Azure上Web应用程序的文件夹(Web应用程序“DebugConsole) [英] Moving local .whl file to a folder on Azure Web Apps accessed via Kudu (Web Apps' DebugConsole)

查看:172
本文介绍了移动本地文件.whl通过捻访问在Azure上Web应用程序的文件夹(Web应用程序“DebugConsole)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Heroku的迁移我的Django网站Azure上。我使用的是'Azure的Web应用程序,其中从我requirements.txt安装PostgreSQL需要体操的一点点。我不能直接通过安装在PIP封装,而是我必须创建一个<一个href=\"https://azure.microsoft.com/en-us/documentation/articles/web-sites-python-configure/#troubleshooting---package-installation\"相对=nofollow>轮并手动包括在我的仓库。

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.

我完成了一半。我有 psycopg2-2.6.1-cp27-NONE-win32.whl 准备好我的本地机器上。关于下一步该怎么做,我的问题是:我怎么复制的的 .whl 文件通过捻在 https://mysite.scm.azurewebsites.net/DebugConsole ?是否有一个命令这将根据我的本地机器上的文件复制到Azure的Web应用程序?

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。我将其复制到文件夹 D:\\家\\网站\\ wwwroot的\\ ENV \\脚本\\驾驶室\\ ,我希望有人能证实这是有道理的。

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.

推荐答案

有什么可这只是美好的旧的 FTP

There's nothing to this except good old FTP.

在你的管理门户Azure的Web应用程序仪表板,去'的部署凭据和并设置FTP /用户名和密码。使用这对通过您选择的任何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!

此外,正确的位置放置.whl文件是 D:\\家\\网站\\库\\驾驶室\\

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

这篇关于移动本地文件.whl通过捻访问在Azure上Web应用程序的文件夹(Web应用程序“DebugConsole)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆