Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

only run this on the app server #39

Closed
wants to merge 1 commit into from

1 participant

@atomical

Made a mistake. We need this to deploy with Capistrano.

https://github.com/javan/whenever

Here are the basic rules:

If a server's role isn't listed in whenever_roles, it will never have jobs added to its crontab.
If a server's role is listed in the whenever_roles, then it will have all jobs added to its crontab that either list that role in their :roles arg or that don't have a :roles arg.
If a job has a :roles arg but that role isn't in the whenever_roles list, that job will not be deployed to any server.
@atomical atomical closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 27, 2013
  1. @atomical
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/schedule.rb
View
4 config/schedule.rb
@@ -1,5 +1,5 @@
set :output, "log/whenever_cron.log"
-every 1.minute do
- rake 'avalon:batch:ingest', :environment => "development"
+every 1.minute, :roles => [:app] do
+ rake 'avalon:batch:ingest'
end
Something went wrong with that request. Please try again.