从本地 git 推送到 Azure 应用服务 git 失败。
直到昨天为止,这一直运作良好。我真的不明白为什么dotnet
当App在Linux中运行时,参与Azure中的推送执行。我在本地从 Windows Powershell 运行 git 并部署到 linux,git add 和 git commit 工作正常,但推送失败。我搜索过类似的问题,但这与我在这里找到的其他问题有点不同。
The error is from git push:
PS xxx_deploy> git push
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 212 bytes | 212.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Could not execute because the specified command or file was not found.
remote: Possible reasons for this include:
remote: * You misspelled a built-in dotnet command.
remote: * You intended to execute a .NET Core program, but dotnet-/opt/Kudu/KuduConsole/kudu does not exist.
remote: * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
To https://xxxx.scm.azurewebsites.net/xxxx.git
正在部署的文件是.html
, .js
, .svg
, .txt
, .css
, .png
, .ico
, some .woff
fonts
我已经检查过,它正在寻找的 dotnet 不在该文件夹中,但为什么它需要它来进行 Node js 部署?
我通过谷歌搜索尝试了一些建议,包括:
- 回车和换行标志,'git config --global core.autocrlf true',我尝试了 true 和 false
- 我删除了 Azure 应用程序的 /home/site/deployments/tools/ 中的文件,因为有人建议部署文件可能已损坏,但这没有帮助。
我希望得到一些解决方案,因为我无法再向应用程序推送新的更改。