I am using sphinx for search. So of course command "rake db:start" needs to be executed every time i launch server. I decided to use whenever for that and used this tutorial:http://asciicasts.com/episodes/164-cron-in-ruby
this is my schedule.rb file every 2.hours do rake "ts:index", environment => "development"end every :reboot do rake "ts:start", environment => "development"end and this is my crontab file # Begin Whenever generated tasks for: forum@reboot /bin/bash -l -c 'cd /home/addie/forum && RAILS_ENV=development bundle exec rake ts:start --silent' 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * /bin/bash -l -c 'cd /home/addie/forum && RAILS_ENV=development bundle exec rake ts:index --silent' # End Whenever generated tasks for: forum i am working in development environment, so i just launch server by rails s and try to do search. but i get error connecting to sphinx via mysql protocol. while i get no error if i run "rake ts:start" before "rails server". that can only mean that whenever is not executing rake commands. what might i be missing? -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
