San*_*osh 5 capistrano ruby-on-rails unicorn
我使用capistranoon AWS,with 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'
Run Code Online (Sandbox Code Playgroud)
我的最新版本是20140310124541,但缺少的模板错误来自之前的版本20140310084512.可能是什么问题.该current文件夹的符号链接也正确创建.
您需要确保重新启动nginx/unicorn.一旦程序在符号链接中查找文件夹/文件,它将指向目标.因此,当capistrano指向当前最新版本时,nginx仍在查看现在最有可能被删除的旧目标.
确保您已重新启动设置,如下所示:https://github.com/sosedoff/capistrano-unicorn
| 归档时间: |
|
| 查看次数: |
889 次 |
| 最近记录: |