Hi all,
I'm just deploying my app on production under debian linux after
developing it under windows.
In development, everything worked fine.
In my model:
define_index do
indexes :title
indexes :content
has country_id, :type => :integer
has created_at, :type => :datetime
has updated_at, :type => :datetime
set_property :delta => true
set_property :field_weights => {
:title => 10,
:content => 6
}
end
And in my sphinx.yml
development:
morphology: stem_en
min_infix_len: 3
enable_star: true
production:
bin_path: '/usr/local/bin'
morphology: stem_en
min_infix_len: 3
enable_star: true
test:
morphology: stem_en
min_infix_len: 3
enable_star: true
Things go wrong when I try to create new instance of my model in
production environment, seems like DELTA doesn't work and raise this
error:
Errno::EACCES (Permission denied - /home/francky/ruby_apps/bliper/log/
searchd.production.pid):
/usr/local/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.18/lib/
thinking_sphinx.rb:210:in `read'
/usr/local/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.18/lib/
thinking_sphinx.rb:210:in `sphinx_pid'
/usr/local/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.18/lib/
thinking_sphinx.rb:205:in `sphinx_running_by_pid?'
/usr/local/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.18/lib/
thinking_sphinx.rb:198:in `sphinx_running?'
and new instance doesn't get indexed until I redo rake
RAILS_ENV=production ts:rebuild whereas it should be indexed
automatically like in development environment (production and
development db schemas are exactly the same)
I ever looked at
http://freelancing-god.github.com/ts/en/common_issues.html#deltas
but I don't really know how to fix this issue, as I'm a *nix beginner.
Please help me
Thanks for your support !
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.