Skip to content

Commit

Permalink
added maintenance mode. #158
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 15, 2018
1 parent 87f3887 commit dcad2f3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ gem 'elasticsearch-rails', '~> 5.0', '>= 5.0.2'
gem 'faraday_middleware-aws-sigv4', '~> 0.2.4'
gem 'rack-utf8_sanitizer', '~> 1.6'
gem 'oj_mimic_json', '~> 1.0', '>= 1.0.1'
gem 'turnout', '~> 2.5'

group :development, :test do
gem 'rspec-rails', '~> 3.5', '>= 3.5.2'
Expand Down
10 changes: 9 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ GEM
api-pagination (4.8.2)
arel (9.0.0)
aws-eventstream (1.0.1)
aws-partitions (1.124.0)
aws-partitions (1.125.0)
aws-sdk-core (3.44.0)
aws-eventstream (~> 1.0)
aws-partitions (~> 1.0)
Expand Down Expand Up @@ -332,6 +332,8 @@ GEM
docopt (~> 0.5)
sysrandom
rack (2.0.6)
rack-accept (0.4.5)
rack (>= 0.4)
rack-cors (1.0.2)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -454,6 +456,11 @@ GEM
thread_safe (0.3.6)
tilt (2.0.9)
trollop (2.9.9)
turnout (2.5.0)
i18n (>= 0.7, < 2)
rack (>= 1.3, < 3)
rack-accept (~> 0.4)
tilt (>= 1.4, < 3)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unf (0.1.4)
Expand Down Expand Up @@ -543,6 +550,7 @@ DEPENDENCIES
spring-commands-rspec
spring-watcher-listen (~> 2.0.0)
strip_attributes (~> 1.8)
turnout (~> 2.5)
vcr (~> 3.0.3)
webmock (~> 3.1)

Expand Down
4 changes: 4 additions & 0 deletions config/initializers/turnout.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Turnout.configure do |config|
config.default_maintenance_page = Turnout::MaintenancePage::JSON
config.default_reason = "The site is temporarily down for maintenance. Please check https://status.datacite.org for more information."
end

0 comments on commit dcad2f3

Please sign in to comment.