7

このガイドに従って、カスタムdeploy.cmdファイルを使用して Web アプリを作成しています。deploy.cmdこの記事では、次のコマンドを使用して現在のファイル (後で変更します) のコピーを取得できることを示唆しています。

azure site deploymentscript --python

残念ながら、記事にリンクされている MSI を使用して Azure CLI をインストールするとazure、パスにバイナリがありません。私は持っていますaz-- これは同じ CLI の新しいバージョンですか? -- しかし、その実行可能ファイルに対応する展開スクリプト生成コマンドが見つかりません。

deploy.cmdKudu を使用したファイル ( の下) を見つけましたD:\home\site\deployments\toolsが、それが適切なファイルであるかどうかはわかりません。デプロイ スクリプトを生成するための適切な Azure CLI コマンドを提案したり、deploy.cmd見つけたファイルが変更に適したものであることを確認したりできますか? 前もって感謝します!

4

2 に答える 2

5

kuduscriptを使用して、デプロイ スクリプトを生成できます。

npm install -g kuduscript
kuduscript --python

オプション一覧はこちら

Options:

    -h, --help                          output usage information
    -V, --version                       output the version number
    -r, --repositoryRoot [dir path]     The root path for the repository (default: .)
    --aspWAP <projectFilePath>          Create a deployment script for .NET web application, specify the project file path
    --aspNetCore <projectFilePath>      Create a deployment script for ASP.NET Core web application, specify the project file path
    --aspWebSite                        Create a deployment script for basic website
    --go                                Create a deployment script for Go website
    --node                              Create a deployment script for node.js website
    --ruby                              Create a deployment script for ruby website
    --php                               Create a deployment script for php website
    --python                            Create a deployment script for python website
    --functionApp [projectFilePath]     Create a deployment script for function App, specify the project file path if using msbuild
    --basic                             Create a deployment script for any other website
    --dotNetConsole <projectFilePath>   Create a deployment script for .NET console application, specify the project file path
    -s, --solutionFile <file path>      The solution file path (sln)
    -p, --sitePath <directory path>     The path to the site being deployed (default: same as repositoryRoot)
    -t, --scriptType <batch|bash|posh>  The script output type (default: batch)
    -o, --outputPath <output path>      The path to output generated script (default: same as repository root)
    -y, --suppressPrompt                Suppresses prompting to confirm you want to overwrite an existing destination file.
    --no-dot-deployment                 Do not generate the .deployment file.
    --no-solution                       Do not require a solution file path (only for --aspWAP otherwise ignored).
于 2018-08-04T18:40:20.610 に答える