Rack:/ var / app / current:Elastic beanstalk上没有这样的文件或目录

时间:2013-05-02 17:09:50

标签: ruby-on-rails rack elastic-beanstalk

我尝试将存储库克隆到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应用程序)。

1 个答案:

答案 0 :(得分:0)

您是否应该在'/ var / app / ondeck'中完成此操作?

您没有提供何时执行此克隆。为了安全起见,如果文件夹存在则进行测试。你应该在container_commands下执行此操作,它总是'/ var / app / ondeck',不要乱用当前。