Skip to content

Commit

Permalink
Added whenever to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Ania committed Nov 30, 2010
1 parent 34e296f commit b993485
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 5 additions & 1 deletion config/deploy.rb.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ task :production do
end

namespace :vlad do
remote_task :update_crontab, :roles => [:app] do
run "cd #{current_path}; MERB_ENV=#{merb_env} bundle exec whenever --update-crontab #{application}"
end

remote_task :symlink_configs, :roles => [:app] do
run "ln -s #{shared_path}/config/database.yml #{current_path}/config/database.yml"
run "ln -s #{shared_path}/config/local_config.rb #{current_path}/config/local_config.rb"
Expand Down Expand Up @@ -67,7 +71,7 @@ namespace :vlad do
end

PREPARING_TASKS = [
'vlad:stop', 'vlad:update', 'vlad:symlink_configs', 'vlad:install_gems', 'vlad:build_asset_bundles'
'vlad:stop', 'vlad:update', 'vlad:symlink_configs', 'vlad:install_gems', 'vlad:build_asset_bundles', 'vlad:update_crontab'
]

task :deploy => PREPARING_TASKS + ['vlad:start']
Expand Down
5 changes: 0 additions & 5 deletions config/schedule.rb → config/schedule.rb.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
rake "rubytime:send_timesheet_report_email_for_previous_weekday"
end

# ask John/Ewelina/Paul when exactly
# add to deploy.rb:
# remote_task :update_crontab, :roles => [:app] do
# run "cd #{current_path}; MERB_ENV=#{merb_env} bundle exec whenever --update-crontab #{application}"
# end
every :friday do
rake "rubytime:send_timesheet_summary_emails_for_last_five_days"
end
Expand Down

0 comments on commit b993485

Please sign in to comment.