It's not creating the config file in the shared directory which is
where I have configured it in sphinx.yml

Here is my production config directory structure

-rwxr-xr-x  1 myname www-data 2795 2010-08-01 22:42 boot.rb
lrwxrwxrwx  1 myname www-data   42 2010-08-01 22:42 config.yml -> /var/
www/myapp/shared/config/config.yml
lrwxrwxrwx  1 myname www-data   44 2010-08-01 22:42 database.yml -> /
var/www/myapp/shared/config/database.yml
-rwxr-xr-x  1 myname www-data 4835 2010-08-01 22:42 deploy.rb
-rwxr-xr-x  1 myname www-data 2205 2010-08-01 22:42
development.sphinx.conf
-rwxr-xr-x  1 myname www-data 3853 2010-08-01 22:42 environment.rb
drwxr-xr-x  2 myname www-data 4096 2010-08-01 22:42 environments
drwxr-xr-x  2 myname www-data 4096 2010-08-01 22:42 initializers
drwxr-xr-x  2 myname www-data 4096 2010-08-01 22:42 locales
-rwxr-xr-x  1 myname www-data 4171 2010-08-01 22:42 navigation.rb
-rw-r--r--  1 myname myname     2229 2010-08-01 22:43
production.sphinx.conf
-rwxr-xr-x  1 myname www-data 3658 2010-08-01 22:42 routes.rb
lrwxrwxrwx  1 myname www-data   43 2010-08-01 22:42 sphinx.conf -> /
var/www/myapp/shared/config/sphinx.conf
lrwxrwxrwx  1 myname www-data   42 2010-08-01 22:42 sphinx.yml -> /var/
www/myapp/shared/config/sphinx.yml


Here is my sphinx.yml file contents

searchd_file_path: /var/www/myapp/shared/sphinx
enable_star: true
query_log_file: /var/www/myapp/shared/log/searchd.query.log
config_file: /var/www/myapp/shared/config/sphinx.conf
mem_limit: 20M
searchd_log_file: /var/www/myapp/shared/log/searchd.log
morphology: stem_en
pid_file: /var/www/myapp/shared/log/searchd.production.pid

When I cd into the current directory and run rake
thinking_sphinx:configure RAILS_ENV=production, It says

(in /var/www/myapp/releases/20100802054226)
Generating Configuration to /var/www/myapp/releases/20100802054226/
config/production.sphinx.conf



On Aug 1, 9:20 pm, Jim Ruther Nill <[email protected]> wrote:
> The only time you need to reindex is when the define_index block is
> modified.  Unless version 20100801184629 and current have different
> define_index blocks, I think it's ok to not restart your searchd instance.
>
>
>
> On Mon, Aug 2, 2010 at 12:05 PM, badnaam <[email protected]> wrote:
> > I am using capistrano for deployment, where I need to cd into the
> > current directory to do a rake ts:start, now after a few other
> > deployments, the current sym_link points to another release directory
> > but the sphinx process and the productionion.sphinx.conf file points
> > to an older release directory.
>
> > 5449     1  0 11:55 pts/0    00:00:03 searchd --pidfile --config /var/
> > www/myapp/releases/20100801184629/config/production.sphinx.conf
>
> > 1 - Is this a problem?
>
> > 2 - What's the best way to manage this? Do I need to restart sphinx
> > after every deployment? How do I make sure that the production.conf is
> > generated inside the current "current" directory.
>
> > Thanks
>
> > --
> > 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]<thinking-sphinx%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/thinking-sphinx?hl=en.
>
> --
> -------------------------------------------------------------
> visit my blog athttp://jimlabs.heroku.com

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