尝试部署到AWS Elastic Beanstack时找不到命令

时间:2018-10-13 22:21:47

标签: amazon-web-services amazon-elastic-beanstalk

按照本教程尝试为我的Django项目设置AWS Elastic Beanstack时:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html

一旦我开始跑步

eb create django-env

我收到此错误:

warning: CRLF will be replaced by LF in .gitignore.
The file will have its original line endings in your working directory.
Creating application version archive "app-2f30-181013_230403".
ERROR: CommandError - An error occurred while handling git command.
Error code: 1 Error: C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 18: .: git-sh-setup: file not found

有什么想法在这里吗? Windows无法使用AWS Elastic Beanstack吗?

1 个答案:

答案 0 :(得分:0)

您遇到Windows路径和程序兼容性问题。

EB CLI在Windows上可以正常工作。我几乎每天都在许多针对不同客户的公司系统上使用它。假设一切都已正确安装和设置。

1)确保已安装Windows本机版本的Git。从此位置安装: Downlading Git

2)确保Windows搜索路径中Git的Windows本机版本在Mingw之前。否则,将加载错误的程序,然后所有Mingw环境和依赖项都会使一切混乱。

3)确保已安装最新版本的EB CLI(最后执行此操作)。请按照以下步骤修复您的当前安装。根据您的设置,仅安装EB CLI可能就足够了。

Install Python, pip, and the EB CLI on Windows