ruby-on-rails – Capistrano从旧版本发出错误. ::的ActionView
发布时间:2020-12-17 03:23:42 所属栏目:百科 来源:网络整理
导读:我在AWS上使用capistrano部署了我的应用程序,使用nginx和unicorn.当我打开我的主页时,它是空的.这是我的独角兽日志 Started GET "/" for 111.111.111.111 at 2014-03-10 12:50:02 +0000Processing by StaticController#index as HTMLCompleted 500 Internal
我在AWS上使用capistrano部署了我的应用程序,使用nginx和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.可能是什么问题.正确创建当前文件夹符号链接. 解决方法
您需要确保重新启动nginx / unicorn.一旦程序在符号链接中查找文件夹/文件,它将指向目标.因此,当capistrano指向当前最新版本时,nginx仍在查看现在最有可能被删除的旧目标.
确保您已重新启动设置,如下所示:https://github.com/sosedoff/capistrano-unicorn (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |