I am trying to execute the following shell script using crontab:
#!/bin/sh cd /mnt/voylla-production/current bundle exec rake maintenance:last_2_days_orders bundle exec rake maintenance:send_last_2_days_payment_dropouts
Crontab entry
0 16 * * * /mnt/voylla-production/releases/20131031003111/voylla_scripts/cj_4pm.sh
I get the following error message in the mail:
/mnt/voylla-staging/current/voylla_scripts/cj_4pm.sh: line 3: bundle: command not found /mnt/voylla-staging/current/voylla_scripts/cj_4pm.sh: line 4: bundle: command not found
I do not get an error when running commands manually. Not sure what is going on here. Maybe someone will indicate.
thanks
ruby-on-rails crontab bundle rake
nish
source share