Ruby on rails 3.2 尝试运行rake任务时出现Crontab错误-使用gem

Ruby on rails 3.2 尝试运行rake任务时出现Crontab错误-使用gem,ruby-on-rails-3.2,crontab,rake-task,whenever,Ruby On Rails 3.2,Crontab,Rake Task,Whenever,我创建了一个简单的rake任务。我正在尝试使用gem每天运行一次此任务。但是,没有启动任何任务 在my/var/mail/*文件中 From: root@Gupta (Cron Daemon) To: shubham@Gupta Subject: Cron <shubham@Gupta> /bin/bash -l -c 'cd /home/shubham/Desktop/rails_apps/crispics && RAILS_ENV=development bund

我创建了一个简单的rake任务。我正在尝试使用gem每天运行一次此任务。但是,没有启动任何任务

在my/var/mail/*文件中

From: root@Gupta (Cron Daemon)
To: shubham@Gupta
Subject: Cron <shubham@Gupta> /bin/bash -l -c 'cd /home/shubham/Desktop/rails_apps/crispics && RAILS_ENV=development bundle exec rake update_time_elapsed --silent'
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/shubham>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=shubham>
Message-Id: <20120720180401.E2D7AD4092D@Gupta>
Date: Fri, 20 Jul 2012 23:34:01 +0530 (IST)

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
ERROR: Gem bundler is not installed, run `gem install bundler` first.
来自:root@Gupta(Cron守护进程)
致:shubham@Gupta
主题:Cron/bin/bash-l-c'cd/home/shubham/Desktop/rails\u apps/crispics&&rails\u ENV=development bundle exec rake update\u time\u passed--silent'
内容类型:文本/纯文本;字符集=ANSI_X3.4-1968
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
消息Id:
日期:2012年7月20日星期五23:34:01+0530(IST)
tput:未指定$TERM的值和-T
tput:未指定$TERM的值和-T
错误:未安装Gem bundler,请先运行'Gem install bundler'。

我的系统中安装了bundler,如果我从crontab到命令提示符键入命令,任务将被触发。

在项目应用程序中运行此命令

bundle update