Whenever - Cron not working? Permission denied

前端 未结 3 897
半阙折子戏
半阙折子戏 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:58

    Try to make bin/rails executable:

    chmod u+x bin/rails
    

    This is, of course, assuming that bin/rails is owned by the crontab's user.

提交回复
热议问题