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
ruby ruby-on-rails cron ruby-on-rails-4.2 whenever


source to share


No one has answered this question yet

See similar questions:

13
when gems only have a cronjob on one machine?

or similar:

35
Rails used every time a stone is in development
4
Capistrano + Whenever Gems Are Trash / Rails: Permission Denied
2
Multiple schedule.rb files with each gem
2
cron jobs set on every call to environment variables
2
Lack of required gems on cron execution, generated whenever a gem is in production environment
1
Rails Whenever gem cron fe_sendauth: no password provided
0
How to set timezone at any time when gem cronjob
0
Setting up Cron to work with every gem in AWS
0
Fighting the deployment of all sorts of cron jobs
0
can't find the gem bundler when running cron with sometime?



All Articles
Loading...
X
Show
Funny
Dev
Pics