I am working on a rails project based on rails 1.2.3 I write the routes.rb like this map.connect '''', :controller => "welcome", :action => ''index'' and I also set the caches_page for welcome/index The cache page works well on my macbook. when the first visit the app creates the index.html in the public directory and use the cached index.html when the next visits come. But when I deploy the app to my hostmonster''s host the app does not use the cached page, it creates new index.html instead. I don''t know what''s the differents between my computer and the host. Why the app does not use cached page. By the way I also set the other caches_page they work well both on my computer and the host. Any idea? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Tue, 2008-07-08 at 03:35 +0200, Hongliang Zhang wrote:> I am working on a rails project based on rails 1.2.3 > I write the routes.rb like this > > map.connect '''', :controller => "welcome", :action => ''index'' > > and I also set the caches_page for welcome/index > > The cache page works well on my macbook. when the first visit the app > creates the index.html in the public directory and use the cached > index.html when the next visits come. > > But when I deploy the app to my hostmonster''s host the app does not use > the cached page, it creates new index.html instead. > > I don''t know what''s the differents between my computer and the host. Why > the app does not use cached page. > > By the way I also set the other caches_page they work well both on my > computer and the host. > > Any idea? > Thanks.---- just guessing but the user that the web server runs as doesn''t have write permissions in ''public'' to create the folder/file in order to cache it. Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Craig White wrote:> On Tue, 2008-07-08 at 03:35 +0200, Hongliang Zhang wrote: >> >> Thanks. > ---- > just guessing but the user that the web server runs as doesn''t have > write permissions in ''public'' to create the folder/file in order to > cache it. > > CraigThe cached page is already created but not used. so I don''t think it''s the permission problem. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Craig White
2008-Jul-08 03:58 UTC
Re: ****[Rails] Re: Why the app does not use the cached page.
On Tue, 2008-07-08 at 05:29 +0200, Hongliang Zhang wrote:> Craig White wrote: > > On Tue, 2008-07-08 at 03:35 +0200, Hongliang Zhang wrote: > >> > >> Thanks. > > ---- > > just guessing but the user that the web server runs as doesn''t have > > write permissions in ''public'' to create the folder/file in order to > > cache it. > > > > Craig > > > The cached page is already created but not used. > so I don''t think it''s the permission problem.---- if it''s a ''cached page'', you should be able to move it somewhere else and it would be automatically recreated. Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---