Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Rebuild index with cron + rake
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joe Noon  
View profile  
(1 user)  More options Jul 26 2008, 10:51 pm
From: "Joe Noon" <joen...@gmail.com>
Date: Sat, 26 Jul 2008 19:51:30 -0700
Local: Sat, Jul 26 2008 10:51 pm
Subject: Re: [ts] Rebuild index with cron + rake

I just ran into this myself.  Its most likely that your cron environment
isn't the same as your app's user's environment.  To fix that, get the PATH
of your app's user and set it in the crontab file.  Also, set the shell to
the same as what you get when you ssh in (mine is bash).  Here's an excerpt
of mine to show what I mean:

PATH=/usr/local/bin:/usr/bin:/bin
SHELL=/bin/bash

# re-index sphinx every 20 minutes
12,32,52 * * * * cd /var/www/app/current && RAILS_ENV=production rake
thinking_sphinx:index >> /dev/null 2>&1

Unrelated, but you can set MAILTO the same way.

Joe


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wbharding  
View profile  
 More options Aug 23 2008, 4:45 pm
From: wbharding <william.hard...@gmail.com>
Date: Sat, 23 Aug 2008 13:45:12 -0700 (PDT)
Local: Sat, Aug 23 2008 4:45 pm
Subject: Re: Rebuild index with cron + rake
Beautiful.  This was my exact problem, and exact solution.

For those that are not Linux heads through and through (anyone besides
me? :)) you can find your user's shell and path with:

echo $PATH

and

echo $SHELL

On Jul 26, 11:23 pm, PJAY79 <pjay1...@hotmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google