如何将新文件路径添加到 azure 应用服务中的环境变量路径 [英] How to add new file path to environment variable Path in azure app service
问题描述
我正在为 web2py 项目创建 azure web 应用程序,我的应用程序使用 jwt
包.现在我想将
现在要么我需要在默认位置安装这个包,要么我需要将 D:\home\python364x64\Script
包含到环境变量中PATH
.
我不知道如何做任何这种方法?如果有人帮我解决这个问题,那就太好了
关于如何给azure添加环境变量可以参考这个wiki:
I am creating azure web app for web2py project, my application uses jwt
package. Now I want to install pyjwt package to azure app service. After installing it through kudu it installed on some other location which is not in azure app service environment variable.
Now either I need to install this package at default location or I need to include
D:\home\python364x64\Script
to environment variablePATH
.
I don't know how to do any of this approach? It would be really great if someone help me to solve this issue
About how to add environment variable to azure you could refer to this wiki: Adding environment variables. You need the applicationHost.xdt
, put it under d:\home\site
folder.
The below is a sample.
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<runtime xdt:Transform="InsertIfMissing">
<environmentVariables xdt:Transform="InsertIfMissing">
<add name="PATH" value="D:\home\python364x64\Scripts;%PATH%" xdt:Locator="Match(name)"
xdt:Transform="InsertIfMissing" />
</environmentVariables>
</runtime>
</system.webServer>
</configuration>
这篇关于如何将新文件路径添加到 azure 应用服务中的环境变量路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!