【问题标题】:Rack: /var/app/current: No such file or directory on Elastic beanstalk机架:/var/app/current:Elastic beanstalk 上没有这样的文件或目录
【发布时间】:2013-04-26 23:15:24
【问题描述】:

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

【问题讨论】:

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


    【解决方案1】:

    您应该改为在“/var/app/ondeck”中执行此操作吗?

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

    【讨论】:

      猜你喜欢
      • 2013-03-31
      • 2021-06-13
      • 2018-02-10
      • 2016-02-18
      • 1970-01-01
      • 2017-08-16
      • 2022-06-11
      • 2017-02-22
      • 2015-05-30
      相关资源
      最近更新 更多