Skip to content

Instantly share code, notes, and snippets.

@aantix
Created August 19, 2012 06:38
Show Gist options
  • Save aantix/3392801 to your computer and use it in GitHub Desktop.
Save aantix/3392801 to your computer and use it in GitHub Desktop.
Rails : script/runner with rvm called from cron
#!/usr/bin/env bash
source /usr/local/rvm/environments/ruby-1.9.2-p318@action_traction
cd /var/www/action_traction/current
script/rails runner -e production "LeadSearch.generate_leads" 2>&1 >> /var/www/action_traction/current/log/generate_leads.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment