How to make 'whenever' gem work on Windows?

我怕爱的太早我们不能终老 提交于 2019-11-28 14:13:37
Robert Brown

This gem is a wrapper for the *nix utility cron. We can see in the gem source file command_line.rb line 75 that it uses 'crontab' shell command.

It will not work on a standard Windows install as this command is not available.

There are windows versions such as cronw, but I cannot say if these would be compatible with the whenever gem.

Alternatively you could run your long running task as a windows service. This article should get you started.

If you must use whenever/cron, perhaps because you are deploying on *nix, try downloading the Binami Rubystack VM - you'll be up and running in minutes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!