add a sphinx.yml file inside the config directory with the following lines development:
port: 9313 production: port: 9314 then run rake ts:rebuild. This should override the port settings for the respective environment. On Wed, May 19, 2010 at 8:20 PM, ct9a <[email protected]> wrote: > I have noticed more things. > > 1) As root, i ran ps -ef |grep searchd > > Found a process there. > > 2) Logged in as the production user, "prod", I ran "rake ts:stop" in > my RAILS_ROOT dir. > > 3) checked and edited both config files,development.sphinx.conf and > production.sphinx.conf's ports to 9313 and 9314 respectively for > development and production environments. > > 4) Logging in as the production user, I started sphinx up with > "cd /home/prod/projects/myApp && RAILS_ENV=production /usr/bin/env > rake thinking_sphinx:rebuild >> /home/prod/projects/myApp/log/ > thinking_sphinx_cron_log 2>&1 && RAILS_ENV=production /home/prod/ > projects/myApp/script/runner /home/prod/projects/myApp/script/ > set_parts_status_to_live.rb > " > > 5) i now ran "netstat -l" and this is what I got: > > r...@server:~# netstat -l > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address > State > tcp 0 0 *:ssh *:* > LISTEN > tcp 0 0 localhost.localdom:smtp *:* > LISTEN > tcp 0 0 localhost.localdom:9312 *:* > LISTEN <--- What is still running under port 9312?? > tcp 0 0 localhost.localdo:mysql *:* > LISTEN > tcp 0 0 localhost.lo:submission *:* > LISTEN > tcp 0 0 *:www *:* > LISTEN > tcp6 0 0 [::]:ssh [::]:* > LISTEN > Active UNIX domain sockets (only servers) > Proto RefCnt Flags Type State I-Node Path > unix 2 [ ACC ] STREAM LISTENING 7138008 @/com/ > ubuntu/upstart > unix 2 [ ACC ] STREAM LISTENING 9367004 /var/run/ > sendmail/mta/smcontrol > unix 2 [ ACC ] STREAM LISTENING 53979515 /tmp/ > passenger.11397/master/helper_server.sock > unix 2 [ ACC ] STREAM LISTENING 53979519 /tmp/ > passenger.11397/info/status.socket > unix 2 [ ACC ] STREAM LISTENING 53982916 /tmp/ > passenger.11397/backends/backend. > 4GmfsJstbpaV2Q2v4vKPYPMDULHe0kE8GdkM4l8ZZgMnpbJZyqzW7syx4bDTabDWdD660 > unix 2 [ ACC ] STREAM LISTENING 7258042 /var/run/ > mysqld/mysqld.sock > > > > r...@server:~# ps -ef |grep searchd > 1001 14081 1 0 22:10 pts/2 00:00:00 searchd --pidfile -- > config /home/prod/projects/myApp/config/production.sphinx.conf > root 19804 10199 0 22:18 pts/8 00:00:00 grep --color=auto > searchd > r...@server:~# > > > > > This is really weird. > I set both the development.sphinx.conf and production.sphinx.conf's > ports to 9313 and 9314 . > What's still running on 9312 ? how do i find out specifically which > application is using the port? > > -- > 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. > > -- 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.
