0
我使用的,只要创业板运行我的模型法(cron作业)不是可执行文件:使用每当宝石
我的步骤来安装whenever gem
斌/ Rails是
的Gemfile
gem 'whenever', :require => false
项目路径类型
wheneverize .
在schedule.rb
set :output, {:error => "log/cron_error_log.log", :standard => "log/cron_log.log"}
every 1.minute do
runner 'Invoice.mark_as_overdue'
end
当我检查cron_log.log文件的示值误差
bundler: not executable: bin/rails
任何建议将欣赏
谢谢,我使用发条宝石 – ashvin