Azure развертывание для ASP. NET Core с React не удается - PullRequest
0 голосов
/ 20 июня 2020

Я могу выполнить развертывание вручную из Visual Studio, щелкнув решение правой кнопкой мыши и выбрав Publi sh. Но я хочу автоматизировать этот процесс с помощью служб приложений Azure.

Я выполнил процесс настройки (подключил репозиторий GitHub к Azure службам приложений).

Но когда я нажал на мастер, это займет некоторое время, затем появится сбой.

Вот несколько последних строк журнала:

  npm ERR! Windows_NT 10.0.14393
  npm ERR! argv "D:\\Program Files (x86)\\nodejs\\6.9.1\\node.exe" "D:\\Program Files (x86)\\npm\\3.10.8\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
  npm ERR! node v6.9.1
  npm ERR! npm  v3.10.8
  npm ERR! code ELIFECYCLE
  npm ERR! dotnetsyntaxtreevisualizer@0.1.0 build: `react-scripts build`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the dotnetsyntaxtreevisualizer@0.1.0 build script 'react-scripts build'.
  npm ERR! Make sure you have the latest version of node.js and npm installed.
  npm ERR! If you do, this is most likely a problem with the dotnetsyntaxtreevisualizer package,
  npm ERR! not with npm itself.
  npm ERR! Tell the author that this fails on your system:
  npm ERR!     react-scripts build
  npm ERR! You can get information on how to open an issue for this project with:
  npm ERR!     npm bugs dotnetsyntaxtreevisualizer
  npm ERR! Or if that isn't available, you can get their info via:
  npm ERR!     npm owner ls dotnetsyntaxtreevisualizer
  npm ERR! There is likely additional logging output above.
  
  npm ERR! Please include the following file with any support request:
  npm ERR!     D:\home\site\repository\DotNetSyntaxTreeVisualizer\ClientApp\npm-debug.log
D:\home\site\repository\DotNetSyntaxTreeVisualizer\DotNetSyntaxTreeVisualizer.csproj(37,5): error MSB3073: The command "npm run build" exited with code 1.
Done Building Project "D:\home\site\repository\DotNetSyntaxTreeVisualizer\DotNetSyntaxTreeVisualizer.csproj" (default targets) -- FAILED.

Build FAILED.

"D:\home\site\repository\DotNetSyntaxTreeVisualizer\DotNetSyntaxTreeVisualizer.csproj" (default target) (1:7) ->
(PublishRunWebpack target) -> 
  D:\home\site\repository\DotNetSyntaxTreeVisualizer\DotNetSyntaxTreeVisualizer.csproj(37,5): error MSB3073: The command "npm run build" exited with code 1.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:06:10.93
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild-16.4\MSBuild\Current\Bin\MSBuild.exe" /restore "D:\home\site\repository\DotNetSyntaxTreeVisualizer\DotNetSyntaxTreeVisualizer.csproj" /p:DeployOnBuild=true /p:configuration=Release /p:publishurl="D:\local\Temp\8d814f3bc2d7331"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\87.20522.4610\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

Это репозиторий GitHub в случае необходимости.

...