Whenever - Cron not working? Permission denied

前端 未结 3 867
半阙折子戏
半阙折子戏 2021-01-05 11:23

\'I have set up a cron with wehenever, but its not working. I tried to run the command manually and i get the error /bin/bash: bin/rails: Permission denied.

3条回答
  •  鱼传尺愫
    2021-01-05 11:55

    i had the same problem and solved this as follows:

    (iam work with rvm and my */bin/rails has already +rx privileges)

    As you can see in whenever-github you can change job_type within config/schedule.rb

    job_type :runner,  "cd :path && /other-path/path-x/bin/rails runner -e :environment ':task' :output"
    

提交回复
热议问题