On Wed, Jan 24, 2007 at 12:05:24PM +0100, Michael Mahemoff wrote:
> Jens Kraemer wrote:
> > On Thu, Jan 18, 2007 at 01:05:47PM +0100, Michael Mahemoff wrote:
> >> Hi,
> >> 
> >> This is a recurring issue for me - the index directory on my production
> >> server and everything below it occasionally disappears and isn't
> >> reconstructed. I tried manually creating the entire index path manually
> >> before starting the server, but it still happened while the server is
> >> running.
> >> 
> >> I don't know what's causing the index to disappear and I'm also not sure
> >> why it's not automagically re-created in any event?
> > 
> > I suspect you use capistrano for your deployment - is it possible that
> > on each deploy your index gets lost because it is located inside the
> > releases/.../ subdirectory?
> 
> Thanks for the reply and you guessed correctly. It's running capistrano 
> and maybe that explains why it happens periodically.
> 
> > for the index not being recreated problem - maybe it's just a permission
> > issue?
> 
> I'm not sure about that as the log messages don't seem to indicate it 
> and the server user is the same as the user that created the release 
> structure. I do have the index checked in to the repository though (as a 
> hack) and maybe the attributes on it are wrong (e.g. the dir's not 
> executable).

I usually symlink the RAILS_ROOT/index/ directory to shared/index in an
after_update_code recipe.
That way the index physically stays the same from deployment to
deployment.

Jens
 

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to