Git部署问题 [英] Git Deployment issue

查看:124
本文介绍了Git部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

枚举对象:9个,已完成.
计数对象:已完成100%(9/9).
最多可使用8个线程进行Delta压缩.
压缩对象:已完成100%(5/5).
写入对象:100%(5/5),414字节| 414.00 KiB/s,完成.
总计5(增量4),已重用0(增量0)
remote:正在更新分支"master".
remote:更新子模块.
远程:正在准备提交ID为"c7d5b7e083"的部署.
remote:对象引用未设置为对象的实例
远程:应用程序容器将在10秒内开始重新启动.
remote:错误-更改已提交到远程存储库,但部署到网站失败.
到https://workoutweb.scm.azurewebsites.net:443/WorkoutWeb.git
   b93e851..c7d5b7e 大师->大师

Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 414 bytes | 414.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id 'c7d5b7e083'.
remote: Object reference not set to an instance of an object
remote: App container will begin restart within 10 seconds.
remote: Error - Changes committed to remote repository but deployment to website failed.
To https://workoutweb.scm.azurewebsites.net:443/WorkoutWeb.git
   b93e851..c7d5b7e  master -> master

由于某种原因,Web应用程序将无法像以前那样接受Git部署.我最近将堆栈从.Net Core 2.0更改为2.1,但是除了一些小的代码更改之外,其他都没有改变.我试图查看我可以找到的任何日志, 无济于事.

For some reason the webapp will not accept Git deployments like it used to.  I recently changed the stack from .Net Core 2.0 to 2.1, but aside from some minor code changes nothing else has changed.  I've tried to look at any logs I could find, to no avail. 

推荐答案

  • 查看IIS日志中的错误,确认您的部署正在建立连接
  • 确保一切都在KUDU和Web Apps
  • 通过KUDU和查看部署日志
  • 有多大您的部署?
  • 使用共享进行部署发布者角色,而不是专用的W3WP SCM流程
  • 杀死SCM进程(可能是挂文件)
    • Review the IIS logs for errors, confirm your deployment is making a connection
    • Make sure everything works outside of KUDU and Web Apps
    • Diagnostic dump via KUDU and review the deployment logs
    • How big is your deployment?
    • Deploy using the shared Publisher Role instead of the dedicated W3WP SCM process
    • View the EVENTLOG.xml file for exceptions
    • Kill the SCM process (possible hung file)
    • Real-time log stream analysis with CURL

    有关更多详细信息,请参阅此文档: https://blogs.msdn.microsoft.com/waws/2015/08/06/troubleshooting-web-app-deployment-issues-when-using-git-github/.

    For more details, you may refer to this document: https://blogs.msdn.microsoft.com/waws/2015/08/06/troubleshooting-web-app-deployment-issues-when-using-git-github/.

    默认情况下,仅推送到主分支进行部署.但是您可以通过在Kudu服务上调用REST API来更改此设置.一种简单的方法是使用curl, 为此,您可以参考GitHub Wiki 部署分支 .

    By default, only pushes to the master branch get deployed. But you can change this by calling a REST API on the Kudu service. One simple way to do this is to use curl, to do this, you may refer the GitHub wiki Deployment branch.


    这篇关于Git部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆