Hi!

First: Thanks for great work for making Sphinx easy to use!

I wanted to deploy my (Rails 3.0.3) project to production with
Capistrano. I found these: 
http://freelancing-god.github.com/ts/en/deployment.html.
Nice.

Everything went fine except that I did not notice these.

  pid_file: /path/to/app/***shared***/tmp/searchd.pid
  searchd_file_path: /path/to/app/***shared***/db/sphinx

So i put there tmp/searchd.pid and db/sphinx.

Upon deployment I got this error: "File exists - db/sphinx"
This occured when running thinking_sphinx.start in the
after_update_code task.

After short amount of debugging I found and fixed the problem (wrong
path). I guess this is something that happens pretty often. One way to
avoid it would be to really make sure that symlink_sphinx_indexes task
makes it's job. Currently it's just ran and outcome is not inspected.

Also, to make things more confusing if I logged in with ssh and ran
rake thinking_sphinx:start RAILS_ENV=production everything went fine.
Weird.

Can I submit a patch to make the symlink_sphinx_indexes work better?
The patch would make the task see that such link is possible to create
and that it was successfully created.

-- 
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.

Reply via email to