Skip to content

Commit fe3dd5e

Browse files
Merge branch 'release-1.8.6'
2 parents e5f8a8a + 6623a35 commit fe3dd5e

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.8.6
2+
3+
* Schedule rebuild job to run daily on staging
4+
15
### 1.8.5
26

37
* Disable clear_show_tc_serializer_cache method on production

config/deploy/staging.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
set :app_port, "80"
1515

16+
set :whenever_environment, proc { fetch :stage }
17+
require 'whenever/capistrano'
18+
1619
# server-based syntax
1720
# ======================
1821
# Defines a single server with a list of roles and multiple properties.

config/schedule.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
set :output, 'log/cron.log'
22

3-
every :saturday, :at => '1:42am' do
3+
db_migrate_rebuild_period = @environment == 'production' ? :saturday : :day
4+
5+
every db_migrate_rebuild_period, :at => '1:42am' do
46
rake "db:migrate:rebuild"
57
end
68

0 commit comments

Comments
 (0)