Created
August 19, 2012 06:38
-
-
Save aantix/3392801 to your computer and use it in GitHub Desktop.
Rails : script/runner with rvm called from cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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