0

我试图将存储库克隆到 AWS Elastic Beanstalk 实例上的 Rails 根目录

但我遇到以下错误

rb。

%x(git clone #{a["clone_url"]} #{Rails.root.join('repos',a["owner"]["login"],a["name"])})

/var/app/support/logs/passenger.log

2013/05/02 16:26:08 [error] 1741#0: *4 "/var/app/current/public/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"
(github) Request phase initiated.
(github) Callback phase initiated.
Rack: /var/app/current: No such file or directory - git clone https://github.com/henghonglee/BehaviorTree.git /var/app/current/repos/henghonglee/BehaviorTree

我已经在 ec2 实例上安装了 git 并设法独立执行克隆(不使用 Rails 应用程序)。

4

1 回答 1

0

您是否应该在“/var/app/ondeck”中执行此操作?

您没有提供何时执行此克隆。为了安全起见,请测试文件夹是否存在。您应该在 container_commands 下执行此操作,并且它始终是 '/var/app/ondeck',不要与 current 混淆。

于 2013-06-30T12:50:51.710 回答