php - 无法使用 Git 部署到 AWS Elastic Beanstalk

标签 php node.js git amazon-web-services amazon-elastic-beanstalk

我严格按照 Elastic Beanstalk 文档 ( http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs_express.html ) 进行操作,但我无法使用 git 部署 node.js 或 PHP 应用程序。

$ eb push
Error: Failed to create the AWS Elastic Beanstalk application version
Cannot run aws.push for local repository HEAD: 

如果我尝试从 git 推送,也会发生同样的情况

$ git aws.push
Updating the AWS Elastic Beanstalk environment phpapp-env...
Error: Failed to create the AWS Elastic Beanstalk application version

当您调用 eb init 时,AWS 工具会设置一些 git 快捷方式。失败的调用是...

$.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion
Error: Failed to create the AWS Elastic Beanstalk application version

该 python 模块的代码是...

from aws.dev_tools import *

if __name__ == "__main__":
  dev_tools = DevTools()
  dev_tools.create_application_version(None, None)

我已经为一个全新的 php 和 node.js 项目尝试过这个。我正在运行 Python 2.7.2、Ruby 2.1.2p95(2014-05-08 修订版 45877)[x86_64-darwin12.0]。有什么想法吗?

最佳答案

我们遇到了相同的错误消息,但原因不同。我们的 git commit 的提交消息太长或包含特殊字符。使用更简单的 git 提交消息将其清除。希望这对某人有帮助!

关于php - 无法使用 Git 部署到 AWS Elastic Beanstalk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24023584/

相关文章:

node.js - 删除磁盘后使用 npm 安装 firebase 时出错

javascript - 无法使用异步、nodejs 和 mongodb 更改 javascript 对象属性

php - 如何在ajax过程中显示加载动画和禁用按钮

php - PHP-在数字前添加零,但保持最大长度

php - 绝对文件路径

node.js - node js - 堆转储快照中的巨大 TLSWrap 对象

git - 如何在 git 中 merge 单个文件?

git - 在 Windows 7 中使用 Git Bash 进行提示

git - 验证终端中文件是否存在

php - 错误 file_get_contents() : read of 8192 bytes failed with errno=21