Whenever gem: cron update in multiple server environments

Versions:

Ruby 2.3.1 
Rails 4.2.4 
Whenever 0.9.7

      

Our configuration:

Source code deployed to NFS.

I can successfully deploy my application to NFS. Both EC2 instances are NFS mounted, so both servers point to the same code. Everything works fine.

The problem is that when I deploy NFS, capistrano-whenvever writes / updates the cron to NFS where the cron is not running as a simple file server.

I would like to write cron jobs for EC2 instance1 or EC2 instance.

I went through whenever the gem has a cronjob on only one machine? but failed.

Any help would be appreciated.

+3


source to share





All Articles