【发布时间】:2014-03-10 13:09:13
【问题描述】:
我已经在AWS 上使用capistrano 部署了我的应用程序,nginx 和unicorn。当我打开我的主页时,它是空的。这是我的unicorn日志
Started GET "/" for 111.111.111.111 at 2014-03-10 12:50:02 +0000
Processing by StaticController#index as HTML
Completed 500 Internal Server Error in 236ms
ActionView::MissingTemplate (Missing template static/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee, :haml]}. Searched in:
* "/home/deployer/apps/my-app/releases/20140310084512/app/views"
* "/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/twitter-bootstrap-rails-2.2.8/app/views"
* "/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/glimpse-redis-1.1.0/app/views"
* "/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/glimpse-git-1.0.1/app/views"
* "/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/glimpse-0.0.5/app/views"
* "/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/kaminari-0.15.1/app/views"
* "/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/devise-3.2.3/app/views"
* "/home/deployer/apps/my-app/releases/20140310124541"
* "/"
):
app/controllers/static_controller.rb:8:in `index'
我的最新版本是20140310124541,但缺少模板错误来自以前的版本20140310084512。可能是什么问题。 current 文件夹符号链接已正确创建。
【问题讨论】:
标签: ruby-on-rails capistrano unicorn