推送到远程Azure git-未将对象引用设置为对象的实例 [英] Pushing to remote azure git - Object reference not set to an instance of an object

查看:239
本文介绍了推送到远程Azure git-未将对象引用设置为对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我使用.NET Core 2.1 Web API开发了一个应用程序,前端是js Framework

I Developed an app using .NET Core 2.1 Web API, front end is js Framework

该应用程序可以在本地运行,并且可以在IIS Server上的生产环境中完美运行,

the application works locally and in IIS Server perfect on Production environment,

试图在本地运行该应用程序并将其连接到Azure SQL DB,但一切正常.

Tried to run the app locally and connect it to Azure SQL DB and still everything is fine.

在尝试将项目从github(我的存储库)推送到我从应用程序服务获得的Azure git时

While trying to push the project from github (my repository) to the Azure git that I got from app service

这是输出:

Counting objects: 271, done. Delta compression using up to 4 threads. Compressing objects: 100% (259/259), done. Writing objects: 100% (271/271), 1.21 MiB | 13.44 MiB/s, done. Total 271 (delta 88), reused 0 (delta 0) remote: Resolving deltas: 100% (88/88), done. remote: Updating branch 'master'. remote: Updating submodules. remote: Preparing deployment for commit id '8d62832069'. 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://****-****.scm.azurewebsites.net:443/****.git * [new branch] master -> master

使用VS Code开发的应用程序,通过GitHub Desktop将所有提交推送到github

the application developed in VS Code, pushing all commits to github through GitHub Desktop

机器:Macbook Pro

Machine: Macbook Pro

在Mac终端上的git远程命令.

git remote commands on mac terminal.


有帮助吗?


Any help?

推荐答案

建议您,请参考以下链接 在使用Git/GitHub时解决Web应用程序部署问题 .

I suggest you, refer the link for troubleshooting web app deployment issues when using Git/ GitHub.

您可以还可以自定义部署过程,为此,请参考 使用Git部署的Microsoft Azure Web应用程序的自定义部署脚本 进行操作.

You can also customize the deployment process, to do this, refer Custom Deployment Scripts for Microsoft Azure Web Apps Using Git Deployment for the steps.

- -------------------------------------------------- --------------------------------------
如果此答案有帮助,请单击标记为答案"或上投票".要提供有关您的论坛体验的其他反馈,请单击 span> .

------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.


这篇关于推送到远程Azure git-未将对象引用设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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