Skip to content

Commit

Permalink
Merge branch 'release-1.8.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomarrocoli committed Oct 3, 2022
2 parents e5f8a8a + 6623a35 commit fe3dd5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.8.6

* Schedule rebuild job to run daily on staging

### 1.8.5

* Disable clear_show_tc_serializer_cache method on production
Expand Down
3 changes: 3 additions & 0 deletions config/deploy/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

set :app_port, "80"

set :whenever_environment, proc { fetch :stage }
require 'whenever/capistrano'

# server-based syntax
# ======================
# Defines a single server with a list of roles and multiple properties.
Expand Down
4 changes: 3 additions & 1 deletion config/schedule.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
set :output, 'log/cron.log'

every :saturday, :at => '1:42am' do
db_migrate_rebuild_period = @environment == 'production' ? :saturday : :day

every db_migrate_rebuild_period, :at => '1:42am' do
rake "db:migrate:rebuild"
end

Expand Down

0 comments on commit fe3dd5e

Please sign in to comment.