{"action":"created","issue":{"url":"https://api.github.com/repos/javan/whenever/issues/588","labels_url":"https://api.github.com/repos/javan/whenever/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/javan/whenever/issues/588/comments","events_url":"https://api.github.com/repos/javan/whenever/issues/588/events","html_url":"https://github.com/javan/whenever/issues/588","id":106919985,"number":588,"title":"Whenever 0.9.4 generating runner commands with script/runner, which does not exist in Rails 4","user":{"login":"alitivay","id":6130140,"avatar_url":"https://avatars.githubusercontent.com/u/6130140?v=3","gravatar_id":"","url":"https://api.github.com/users/alitivay","html_url":"https://github.com/alitivay","followers_url":"https://api.github.com/users/alitivay/followers","following_url":"https://api.github.com/users/alitivay/following{/other_user}","gists_url":"https://api.github.com/users/alitivay/gists{/gist_id}","starred_url":"https://api.github.com/users/alitivay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alitivay/subscriptions","organizations_url":"https://api.github.com/users/alitivay/orgs","repos_url":"https://api.github.com/users/alitivay/repos","events_url":"https://api.github.com/users/alitivay/events{/privacy}","received_events_url":"https://api.github.com/users/alitivay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-17T06:30:18Z","updated_at":"2015-09-21T14:53:08Z","closed_at":null,"body":"I am using rails 4.2.3 with whenever 0.9.4 and capistrano 3.1. Everything related to scheduling cron jobs works fine except that I get periodic errors in my cron.log (in production) with the following content:\r\n\r\n```\r\n/bin/bash: script/runner: No such file or directory\r\n```\r\n\r\nthen in my crontab -l I have the following:\r\n\r\n```\r\n/bin/bash -l -c 'cd /home/deploy/delight/releases/20150916202925 && script/runner -e production '\\''Liab.move_expired'\\'' >> /home/deploy/delight/releases/20150916202925/log/cron.log 2>&1'\r\n```\r\n\r\nwhich curiously uses the \"script/runner\" command, which is no longer available in Rails 4 according to this topic on stackoverflow:\r\n\r\nhttp://stackoverflow.com/questions/19683405/why-is-rails-runner-e-production-not-working\r\n\r\nfurthermore, I have included the `require 'capistrano/bundler'` in my Capfile, and I expect the generated the cron command to contain something like this:\r\n\r\n```\r\nbundle exec rails runner -e production\r\n```\r\n\r\ninstead of\r\n\r\n```\r\nscript/runner -e production\r\n```\r\n\r\ncurrently I am thinking about creating a custom job_type that manually generates the required rails runner command, but I think this is an issue worth resolving.\r\n"},"comment":{"url":"https://api.github.com/repos/javan/whenever/issues/comments/142005798","html_url":"https://github.com/javan/whenever/issues/588#issuecomment-142005798","issue_url":"https://api.github.com/repos/javan/whenever/issues/588","id":142005798,"user":{"login":"alitivay","id":6130140,"avatar_url":"https://avatars.githubusercontent.com/u/6130140?v=3","gravatar_id":"","url":"https://api.github.com/users/alitivay","html_url":"https://github.com/alitivay","followers_url":"https://api.github.com/users/alitivay/followers","following_url":"https://api.github.com/users/alitivay/following{/other_user}","gists_url":"https://api.github.com/users/alitivay/gists{/gist_id}","starred_url":"https://api.github.com/users/alitivay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alitivay/subscriptions","organizations_url":"https://api.github.com/users/alitivay/orgs","repos_url":"https://api.github.com/users/alitivay/repos","events_url":"https://api.github.com/users/alitivay/events{/privacy}","received_events_url":"https://api.github.com/users/alitivay/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T14:53:08Z","updated_at":"2015-09-21T14:53:08Z","body":"Excellent !"}}