【问题标题】:command not found when trying to deploy to AWS Elastic Beanstack尝试部署到 AWS Elastic Beanstalk 时找不到命令
【发布时间】:2019-03-18 18:23:58
【问题描述】:

当尝试按照本教程为我的 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

有什么想法吗? AWS Elastic Beanstack 是否无法在 Windows 中使用?

【问题讨论】:

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


    【解决方案1】:

    您有 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

    【讨论】:

      猜你喜欢
      • 2020-08-14
      • 2020-03-24
      • 2017-06-14
      • 2014-08-10
      • 2017-05-07
      • 2015-06-03
      • 2020-12-04
      • 2014-12-16
      • 2017-05-30
      相关资源
      最近更新 更多