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 エントリは
0 16 * * * /mnt/voylla-production/releases/20131031003111/voylla_scripts/cj_4pm.sh
メールに次のエラー メッセージが表示されます。
/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
コマンドを手動で実行してもエラーは発生しません。ここで何が起こっているのかわかりません。誰か指摘してください。
ありがとう