我正在尝试在AWS上部署一个狂欢应用程序。设置好Elastic-Beanstalk并添加到my_project / .ebextensions /此.config文件后
packages:
yum:
git-core: []
container_commands:
bundle:
command: "gem install bundle"
assets:
command: "bundle exec rake assets:precompile"
db:
command: "bundle exec rake db:migrate"
leader_only: true
我使用git aws.push部署我的应用程序,只是得到以下错误消息:
在任何来源中都找不到rake-10.1.0(Bundler :: GemNotFound)
使用bundle show rake对我的gem set进行双重检查会给我:
... /宝石/耙10.1.0
在查看来自AWS的日志文件时,我发现此错误:
sh:git:找不到命令Git错误:命令`git clone'https: //github.com/spree/spree.git '
我究竟做错了什么?
您需要确保在服务器上安装了git。
尝试创建一个名为:
.ebextensions/YOUR_APPLICATION_NAME.config
其中包含
packages:
yum:
git: []
这将与yum一起安装git,这是部署的一部分。
另一种选择是使用从gem产生的狂欢,而不是从git那里获得。
有关更多信息,请参阅AWS Blog上有关将Ruby应用程序部署到Elastic Beanstalk的文章。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句