[英]Can't push to beanstalk
I'm trying to use php git deploy for AWS Beanstalk 我正在尝试将php git deploy用于AWS Beanstalk
I got python, ruby etc installed. 我安装了python,ruby等。 I setup the repository, did a
git aws.config
which went well. 我设置存储库,做了一个
git aws.config
,它运行良好。 Then whenever I try to run git aws.push
I get this error. 然后,每当我尝试运行
git aws.push
,都会出现此错误。
./.git/AWSDevTools/aws/dev_tools.rb:53:in `host': private method `split' called for nil:NilClass (NoMethodError)
from ./.git/AWSDevTools/aws/dev_tools.rb:112:in `signed_uri'
from .git/AWSDevTools/aws.elasticbeanstalk.push:86
Don't know much about ruby, but from what I gather it looks like it's missing a dependency maybe? 对红宝石了解不多,但是从我的收集来看,它似乎缺少依赖项? I guess I'm not sure what's wrong, any help would really be appreciated.
我想我不确定是什么问题,我们将不胜感激。
I had this same problem, and I tracked it to a missing appRoot/.elasticbeanstalk/config file. 我遇到了同样的问题,并将其跟踪到缺少的appRoot / .elasticbeanstalk / config文件中。
I added the file with the following content. 我添加了具有以下内容的文件。 Note: substitute your actual app/environment where appropriate.
注意:在适当的地方替换您的实际应用程序/环境。
.elasticbeanstalk/config >> .elasticbeanstalk / config >>
[global]
ApplicationName=your-application-name-east
DevToolsEndpoint=git.elasticbeanstalk.us-east-1.amazonaws.com
EnvironmentName=your-environment-name
Region=us-east-1
Ok so I did some digging through the source files. 好的,所以我做了一些源文件的挖掘。 Turns out there was a permissions issue in a config file so it was creating a null class, and thus you can't string split a null.
事实证明,配置文件中存在权限问题,因此它正在创建null类,因此您不能对null进行字符串拆分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.