Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source "/home/foobar/.rvm/scripts/rvm"
- if [ $1 == 'task1' ]; then
- /usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task1"
- exit 1;
- fi
- if [ $1 == 'task2' ]; then
- /usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task2"
- exit 1;
- fi
- if [ $1 == 'task3' ]; then /usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task3"
- exit 1;
- fi
Add Comment
Please, Sign In to add comment