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

Automate cron setup for shooting warning emails #300

Open
hugocorbucci opened this issue Mar 5, 2016 · 0 comments
Open

Automate cron setup for shooting warning emails #300

hugocorbucci opened this issue Mar 5, 2016 · 0 comments
Assignees

Comments

@hugocorbucci
Copy link
Member

Using the rake task to shoot warning emails to people who's registration is about to be cancelled is not automated via puppet.
As a consequence, new machines won't have the cronjob necessary. That's bad.
So we need to automate the job that has been manually set up:

#!/usr/bin/env bash
source /etc/profile
export RAILS_ENV=production
cd /srv/apps/registrations/current
/usr/local/rvm/gems/ruby-2.3.0@global/bin/bundle exec rake registration:warn
/usr/local/rvm/gems/ruby-2.3.0@global/bin/bundle exec rake registration:cancel
/usr/local/rvm/gems/ruby-2.3.0@global/bin/bundle exec rake registration:process_queue

With cron schedule
*/5 * * * * script.sh > /dev/null

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

No branches or pull requests

2 participants
@hugocorbucci and others