ruby on rails - Capistrano giving error from old release. ActionView::MissingTemplate -


i have deployed app using capistrano on aws, nginx , unicorn. when open home page, empty. unicorn log

started "/" 111.111.111.111 @ 2014-03-10 12:50:02 +0000 processing staticcontroller#index html completed 500 internal server error in 236ms  actionview::missingtemplate (missing template static/index {: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' 

my latest release 20140310124541, missing template error coming previous release 20140310084512. issue. current folder symlink created properly.

you need make sure restart nginx/unicorn. once program looks folder/file in symlink, point target. so, when capistrano points current latest release, nginx still looking @ old target deleted.

make sure have restart taks setup shown here: https://github.com/sosedoff/capistrano-unicorn


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -