Hasmukh Rathod
Hasmukh Rathod

Reputation: 1118

Whenever gem: cron update in multiple server environment

Versions:

Ruby 2.3.1 
Rails 4.2.4 
Whenever 0.9.7

Our configuration:

Source code deployed on NFS.

I am able to deploy my application on NFS successfully. Both EC2 instances are mounted on NFS, so both server points to same code. All working fine.

The problem is, as i am deploying on NFS, capistrano-whenvever writes/updates cron on NFS, where no crone is executed as its simple file server.

I would like to write cron jobs on EC2 instance1 or EC2 instance2.

I have gone through whenever gem have cronjob on only one machine?, but didn't succeed.

Any help would be appreciated.

Upvotes: 4

Views: 521

Answers (1)

Mayur Pathak
Mayur Pathak

Reputation: 84

cron update in multiple servers is possible,

Here's a link! please refer this link

Upvotes: 1

Related Questions