简体   繁体   English

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

[英]Rack: /var/app/current: No such file or directory on Elastic beanstalk

Im trying to clone a repository onto the Rails root on an AWS Elastic Beanstalk instance 我正在尝试将存储库克隆到AWS Elastic Beanstalk实例的Rails根目录上

but im experiencing the following error 但出现以下错误

rb. rb。

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

/var/app/support/logs/passenger.log /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

I have installed git on the ec2 instance and managed to perform the clone independantly(not using the Rails App). 我已经在ec2实例上安装了git并设法独立执行克隆(不使用Rails App)。

Should you have done this in '/var/app/ondeck' instead? 您应该在“ / var / app / ondeck”中执行此操作吗?

You didn't provide when this cloning is to be executed. 您未提供何时执行此克隆。 Just to be safe, do a test if folder exists. 为了安全起见,请测试文件夹是否存在。 You should do this under container_commands, and it's always '/var/app/ondeck', don't mess with current. 您应该在container_commands下执行此操作,并且始终为'/ var / app / ondeck',不要与current混为一谈。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM