弹性魔豆未能更新本地Git的配置 - 视窗视窗、弹性、魔豆、Git

2023-09-11 11:42:18 作者:心软成患。

> eb init
(Answered all questions)

Failed to update local Git configuration. Follow the instructions at "http://doc
s.amazonwebservices.com/elasticbeanstalk/latest/dg/command-reference-get-started
.html" to set up your Git repository, and then try again.
local variable 'fullpath' referenced before assignment

在我的平台是Windows。 在我跟从的http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_flask.html 的Git(GIT-SCM)的作品在命令行。 GIT_SSH路径被设置为 C:\ Program Files文件(x86)的\腻子\ plink.exe

My platform is Windows. I have followed all the instructions from http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_flask.html Git (git-scm) works from the command line. GIT_SSH path has been set to C:\Program Files (x86)\PuTTY\plink.exe

我已经看了看另外两个问题是相似的,但他们并没有帮助,

I have looked at two other questions which are similar but they haven't helped,

Elastic魔豆未能更新本地的Git配置 I'm试图建立Ruby on Rails的混帐部署AWS弹性魔豆; " EB INIT"失败 Elastic Beanstalk failed to update local Git configuration I'm trying to set up ruby on rails git deployment to AWS Elastic Beanstalk; "eb init" failing

推荐答案

您必须设置PATH的 EB 的位置。如下所示:

You must set your PATH to the location of eb. like the following :

C:\> set PATH=%PATH%;<path_to_unzipped_EB_CLI_package>\eb\windows\

对于我来说,我把 AWS样品code和;图书馆在我的C盘的文件夹,所以上面的链接必须是

for me , I put the AWS Sample Code & Libraries folder on my C drive , So the link above must be

C:\AWS-ElasticBeanstalk-CLI-2.5.1\eb\windows\

请确保您拥有所有的 AWS-ElasticBeanstalk-CLI-2.5.1 文件夹的内容; EB 和 API 文件夹

Make sure that you have all the AWS-ElasticBeanstalk-CLI-2.5.1 folder contents; eb and api folders