Forum: Ferret Ferret with relative index paths

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tom D. (Guest)
on 2006-02-16 16:40
(Received via mailing list)
Hi,

I have ferret working fine on my Dev machine using a relative index
path as follows:

USER_INDEX = Index::Index.new(:path => "indexes/user", :key => 'id',
:auto_flush => true)

And the indexes/user directory is located directly off the root of my
project tree.

But when I migrate this same code to my shared TextDrive account,
Ferret cannot find the index directory and throws this exception:

 /usr/local/lib/ruby/gems/1.8/gems/ferret-0.3.2/lib/ferret/store/fs_store.rb:41:in
`initialize': There is no directory: indexes/user. Use create = true
to create one (RuntimeError)

Do I have to use absolute paths?  Or is it perhaps looking somewhere
else for the root of its relative paths in different environments?

Thanks,
Tom
This topic is locked and can not be replied to.