title: Rake Task from Crontab?
body: <p>Stack:</p>
  
  <p>Apache2</p>
  
  <p>Rails 2.3.8</p>
  
  <p>RedHat Linux </p>
  
  <p>Ruby Enterprise 1.8.7</p>
  
  <p>Got the following rake task in my app user's crontab which is meant to pull records into a database table every 15 min:</p>
  
  <pre><code>*/15 * * * * app_user cd /var/www/apps/my_app/current/ &amp;&amp; rake thing:do_stuff RAILS_ENV=production
  </code></pre>
  
  <p>I can see that the cron daemon is running this task in the cron log, but the database table it's supposed to pull records into doesn't change. This task is working without error when I run it manually in the /var/www/apps/my_app/current directory, and pulls records into the table as I expect it to.</p>
  
  <p>I reset the PATH variable in the crontab to reflect using REE, thinking maybe the default path wouldn't jive with /opt/ruby-enterprise...</p>
  
  <p>How do I get this rake task to actually run with cron?</p>