Hey Pat,

actually I solved it by running system 'flyling-sphinx index'

What do you think of this solution? I had to duck out to play squash and
then forgot to mention this when I got home.

No worries, I think because I'm learning I don't know automatically how to
do things that are obvious to a lot of experienced coders.

On Sun, Apr 7, 2013 at 5:48 PM, Pat Allan <[email protected]> wrote:

> Hi Laurent
>
> Yeah, it could be a little more clear. All you need to do is add 'bundle
> exec flying-sphinx index' as the task command in Scheduler (which you can
> open up by running `heroku addons:open scheduler`). You don't need to
> create a custom rake task for this purpose.
>
> Cheers
>
> --
> Pat
>
> On 08/04/2013, at 7:08 AM, [email protected] wrote:
>
> > Because I'm a newbie at FS, Heroku and Rails I am having trouble
> implementing the scheduler rake task.
> >
> > I build a scheduler.rake in my lib/tasks folder and set up the following:
> >
> > desc "This task is called by the Heroku scheduler add-on"
> > task :index_sphinx => :environment do
> >   puts "Indexing Sphinx db..."
> >  ???flying-sphinx index???
> >   puts "done."
> > end
> >
> > As you can see we have a problem because I have no idea how to type the
> flying-sphinx index command in the task. There's nothing more to add as I'm
> totally in the dark.
> >
> > I think the phrase "just add flying-sphinx index as the task" in the
> Heroku FS doco requires a little background knowledge I still don't have.
> >
> >
> > --
> > 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?hl=en
> .
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
>
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
______________________________________________________
*Laurent Gorse*
MBA Candidate, class of 2013
*Stanford Graduate School of Business*
650.644.9188
[email protected]
gsb.stanford.edu|Facebook: StanfordGSB
<http://Facebook.com/StanfordGSB>|Twitter:
@StanfordBiz <http://twitter.com/StanfordBiz>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to