ruby on rails - App doesn't working after deploying on production server. Development is fine -
my app works on local machine, won't work on production server.
using capistrano, , running under /var/www/current.
restarted web server.
getting site's custom 404, can't retrieve stuff out of /public/images using direct link.
getting in log:
actionview::missingtemplate (missing template access/index {:locale=>[:en, :en], :handlers=>[:rxml, :builder, :erb, :rjs, :rhtml], :formats=>[:html]} in view paths "/var/www/releases/20110703002055/app/views", "/var/www/shared/bundle/ruby/1.8/gems/kaminari-0.12.4/app/views"): i've been playing routes.rb - here line right now:
root :to => 'access#index', :as => 'access' i have these in access_controller.rb:
def index end def welcome respond_to |format| format.html # welcome.html.erb end end i have template index.html.erb , welcome.html.erb in app/views/access directory.
i don't know capistrano, if using git or push code server, looks have not added files repository. (it whines on not finding access/index.html.erb)
in git it's like:
git add . git commit -m "adding missing files"
Comments
Post a Comment