我严格按照 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/