Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

whenever: command not found

I have RVM set up on my mahchine, and installed the "whenever" gem on my machine to run cron jobs. When I tried to execute the command:

 whenever --update-crontab store

I get this error:

-bash: whenever: command not found

I think a path issue is there. Kindly help me out.

like image 376
Bilal Ahmed Avatar asked Dec 01 '22 05:12

Bilal Ahmed


1 Answers

If the gemfile has whenever gem and bundle install has been done, then use bundle exec for the right context.

bundle exec gem list whenever
bundle exec whenever <command>
like image 197
Lavixu Avatar answered Dec 06 '22 06:12

Lavixu