在 Azure 中部署节点应用程序时出错

error in deploying a node app in azure

我正在尝试将节点应用程序部署到 Azure,同时进行部署的最后一步 git push azure master,出现如下错误。

fatal: unable to access 'https://lalit@wittyparrot.com@node-deploy-to-azure.scm.azurewebsites.net/node-deploy-to-azure.git/': Couldn't resolve host 'wittyparrot.com@node-deploy-to-azure.scm.azurewebsites.net'

请帮忙解决。

一个解决方案就像@evilSnobu 所说的那样。使用 url https://{appname}.scm.azurewebsites.com.

您遇到的问题是由您的部署用户名引起的,因为您使用的格式是https://{username}@{appname}.scm.azurewebsites.net:443/{appname}.git

在您的情况下,您将其设置为 lalit@wittyparrot.com。您可能已在 Azure Cloud Shell 中完成此设置并且没有显示错误。

但实际上,名称只能包含字母、数字、连字符和下划线。否则你的 url 无法正确解析。 你可以在这里看到提示。 Azure Cloud Shell 可能会错过一些必要的模式检查,因此无效的用户名不会导致错误显示。