-
-
Save unclemantis/da813d9464fc0d72e36f to your computer and use it in GitHub Desktop.
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
*/1 * * * * /home/unclemantis/rails_projects/update_transactions.sh development >> /tmp/update_transactions7.log 2>&1 |
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
/home/unclemantis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- bundler/setup (LoadError) | |
from /home/unclemantis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /home/unclemantis/rails_projects/config/boot.rb:6:in `<top (required)>' | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from /home/unclemantis/rails_projects/script/rails:5:in `<main>' |
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
#!/bin/bash | |
PATH="/home/unclemantis/.rvm/rubies/ruby-1.9.2-p180/bin:/home/unclemantis/rails_projects/:$PATH" | |
if [ -z "$1" ] | |
then | |
echo "usage : $0 <environment>" | |
echo "eg : $0 staging" | |
exit -1 | |
fi | |
environment=$1 | |
mydir=$(readlink -f $(dirname $0)) | |
scriptdir=$(readlink -f "$mydir/script/rails") | |
## get RAILS_APP/script | |
$scriptdir runner -e "$environment" $mydir/app/models/update_bitcoin_transactions.rb | |
# | |
#</environment> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment