1

我刚刚将我的 rails 3.1 app 上传到 elastic beanstalk。虽然数据库和一切似乎设置正确。试图打开我的应用程序,只会导致浏览器超时。我在日志中看到的唯一错误是:2013/07/10 14:19:33 [error] 1741#0: *4 "/var/app/current/public/index.html" is not found (2:没有这样的文件或目录),客户端:127.0.0.1,服务器:_,请求:“HEAD / HTTP/1.1”,主机:“0.0.0.0”

我使用了静态页面控制器并将我的页面放在视图中,我不知道我应该如何配置乘客,或者我部署应用程序的方式是否有其他问题。其余的日志在这里

谢谢您的帮助

4

1 回答 1

0

您的数据库迁移未能运行:

[root directoryHooksExecutor info] Executing script: 
/opt/elasticbeanstalk/hooks/appdeploy/pre/12_db_migration.sh
2013-07-10 14:25:20,500 [INFO] (1759 MainThread) [directoryHooksExecutor.py-29] 
[root directoryHooksExecutor info] Output from script: Rake task failed to run, 
skipping database migrations.

解决这个问题的最简单方法是再次部署ssh到服务器并手动运行命令以查看失败的原因。这可能是由于多种原因,包括默认拒绝您的 gemfile 中的 git 存储库(bundle install我记得会运行但db:migrate会失败)。有很多方法可以解决所有这些问题,我们只需要更多信息来提供帮助。

于 2013-10-28T15:32:28.510 回答