Can I Use Rails Whenever a Stone Without Capistrano?

I have a Rails application that I hosted on Amazon Elastic Beanstalk. I want to use "Whenever a Gem" to plan tasks, but as the documentation "Whenever a Gem", so this Railscast mentions integration with Capistrano. I do not use Capistrano to manage my server, so I'm not sure if this will ruin my server, if I install it only for use Whenever.

Perhaps another way to ask my question is: what does this command include in the Capistrano deploy.rb file, and is there a replacement for this if I don't use Capistrano:

set :whenever_command, "bundle exec whenever" require "whenever/capistrano" 
+4
source share
2 answers

I read this thread in the Google Group Gem , and I realized that you can use Whenever without Capistrano, but that means you need to start Crontab manually to change the Capistrano. To do this, use this command on your server:

whenever -i

+8
source

Based on the documentation no, you do not need to use Capistrano.

Whenever Capistrano does the following, which registers a pair of hooks to run all sorts of tasks during deployment

 Capistrano::Configuration.instance(:must_exist).load do # Write the new cron jobs near the end. before "deploy:finalize_update", "whenever:update_crontab" # If anything goes wrong, undo. after "deploy:rollback", "whenever:update_crontab" end 
0
source

All Articles