2017-08-22 5 views
0

Azure WebアプリケーションサービスでホストされているDjangoアプリケーションがあります。私は最近skipPythonDeploymentファイルを削除したので、requirements.txtファイルからカスタムパッケージを追加できます。最初はこれがうまくいきました。私はクリスピーなフォームパッケージを追加しましたが、その後、私はDjangoのインストールを1.11(アプリケーションサービスのデフォルトバージョンは1.9.4)に更新したかったのです。Azure WebアプリケーションサービスにDjangoアプリケーションをデプロイすると、Requirements.txtでエラーが発生する

だからこれは私のrequirements.txtが現在に見えるものです:

Counting objects: 3, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (2/2), done. 
Writing objects: 100% (3/3), 308 bytes | 0 bytes/s, done. 
Total 3 (delta 1), reused 1 (delta 0) 
remote: Updating branch 'master'. 
remote: ............................................. 
remote: Updating submodules. 
remote: Preparing deployment for commit id '763167dc3c'. 
remote: Generating deployment script. 
remote: Running deployment command... 
remote: Handling python deployment. 
remote: Detected requirements.txt. You can skip Python specific steps 
with a .skipPythonDeployment file. 
remote: Detecting Python runtime from site configuration 
remote: Detected python-2.7 
remote: Found compatible virtual environment. 
remote: Pip install requirements. 
remote: An error has occurred during web site deployment. 
remote: 
remote: Error - Changes committed to remote repository but deployment to website failed. 
To https://[email protected]:443/b 

django<2 
django-crispy-forms==1.6.1 

、私は、サーバーへの私のコミットをプッシュしようとすると、(git push azure master) 私は、次の展開ログを取得

私はAzuresコミットログを見ようとしましたが、エラーはほぼ同じです:

Command: "D:\home\site\deployments\tools\deploy.cmd" 
Handling python deployment. 
Detected requirements.txt. You can skip Python specific steps with a 
.skipPythonDeployment file. 
Detecting Python runtime from site configuration 
Detected python-2.7 
Found compatible virtual environment. 
Pip install requirements. 
An error has occurred during web site deployment. 
\r\nD:\Program Files 
(x86)\SiteExtensions\Kudu\65.60816.2969\bin\Scripts\starter.cmd 
"D:\home\site\deployments\tools\deploy.cmd" 

私がここで間違っていることは何ですか?または私はどこで実際のエラーを見ることができますか?

EDIT

このgithubのスレッド(https://github.com/azureappserviceoss/DjangoAzure/issues/2)は、サーバからのenv/azure.env.python-2.7.txtを削除することで、回避策を提供しますが、エラーが発生した理由、それは説明しません。

答えて

0

おそらくこれはいくつかのピップエラーです。 Azureでは、「配備オプション」のブレードに配管ログの出力が表示されます。 (あなたのgitブランチを追跡するようにWebアプリケーションを設定し、まだ実行していない場合は自動的に同期させる必要があるかもしれません。)最新の配備が失敗した場合、赤い感嘆符が表示されます。そのデプロイメントをクリックし、展開コマンドの横にある[ログを表示]をクリックします。これによりピップアウトプットと何が問題になったのかが分かります。

FTPサイトにアクセスすると、アプリサーバーのpipログにアクセスすることもできます。

Azure deployment steps

関連する問題