Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 895
Hasmukh Rathod Avatar asked Feb 21 '26 20:02

Hasmukh Rathod


1 Answers

cron update in multiple servers is possible,

Here's a link! please refer this link

like image 148
Mayur Pathak Avatar answered Feb 23 '26 09:02

Mayur Pathak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!