Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to don't write crontab on staging #716

Closed
kaluznyo opened this issue Sep 12, 2017 · 1 comment
Closed

Possibility to don't write crontab on staging #716

kaluznyo opened this issue Sep 12, 2017 · 1 comment

Comments

@kaluznyo
Copy link

Hi,

We don't want use whenever in staging env, can we deactivate whenever for an environment ?

@benlangfeld
Copy link
Collaborator

Yes, just set the role to nil based on the capistrano stage, something like this:

set :whenever_roles, -> { stage == :staging ? nil : :db }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants