外部Gitリポジトリ(Bitbucket)を使用してAzure WebサービスにDjangoアプリケーション(正確にはwagtail)を配備することに課題があります。私は、Python 3.6.1を使用したいので、私は私のpython 3.6.1拡張機能をインストールし、所定の位置に持ってazureアプリケーションサービスでPython 3.6を使用 - 拡張機能としてインストールされているにもかかわらず動作しません
- Managing Python on Azure App Service manualで指示に従っ 私は私のアプリのルートディレクトリにあるweb.configファイルを作成し
- (私がチェックそして、それがサーバーにアップロードされる)
しかし、展開がメッセージで失敗し
Detecting Python runtime from runtime.txt
Unsupported runtime: python-3.6.1
Supported runtime values are:
python-2.7
python-3.4
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\66.61008.3066\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
私のweb.configファイルは
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="PYTHONPATH" value="D:\home\site\wwwroot"/>
<!-- Django apps only -->
<add key="WSGI_HANDLER" value="django.core.wsgi.get_wsgi_application()"/>
<add key="WSGI_LOG" value="D:\home\LogFiles\wfastcgi.log"/>
</appSettings>
<system.webServer>
<handlers>
<add name="PythonHandler" path="*" verb="*" modules="FastCgiModule"
scriptProcessor="D:\home\python361x64\python.exe|D:\home\python361x64\wfastcgi.py"
resourceType="Unspecified" requireAccess="Script"/>
</handlers>
</system.webServer>
</configuration>
パスは以下のクーズーコンソールからls
で、OKです
D:\home\python361x64>ls
DLLs
Lib
Scripts
__pycache__
python.exe
python3.dll
python36.dll
pythonw.exe
sitecustomize.py
vcruntime140.dll
wfastcgi.py
それは考慮に私は「私が持っているweb.configファイル、またはPythonのバージョンを取っていない展開プロセスのように見えます拡張機能経由でインストールされたものは表示されません。
問題の可能性がある箇所を教えてください。
敬具、
コンラート
よく知りたい建物のDockerの画像ですか?独自のビルド( 'python:3.6.3-jessie'からインポート)を行い、LinuxワーカーのApp Serviceにデプロイします。 15分で完了します - https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image – evilSnobu
あなたの発言をありがとう。残念なことに私はDockerに熱心ではないので、今のところ、私はそれを使わずに済むことに決めました(私は実際に問題を解決し、アプリケーションを配備しました)。しかし、将来的にはDockerをもっとよく知っておく必要があります(既に提供されているコンテナのみを使用しました)) – Calfy