Skip to content

Commit 009b8df

Browse files
Merge pull request #12 from AbleTech/hotfix/v0.6.3
Tweak maintenance settings
2 parents 34acc65 + e39b8cf commit 009b8df

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog for easy-deployment
22

3+
## 0.6.3 (2015-11-13)
4+
5+
Bugfixes:
6+
7+
* Fix maintenance page location and typos in `README.md`
8+
39
## 0.6.2 (2015-11-10)
410

511
Enhancements:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ All these settings are configurable, to read more see the documentation for the
101101

102102
### Maintenance
103103

104-
This includes a generator to create a maintenance mode configuration (generator is run by itself as `rails generate easy:maintenace`)
104+
This includes a generator to create a maintenance mode configuration (generator is run by itself as `rails generate easy:maintenance`)
105105

106106
This will generate:
107107

108-
config/initializers/maintenace.rb
108+
config/initializers/maintenance.rb
109109
public/maintenance.html
110110
public/maintenance.json
111111

112-
Customise the site configuration within `config/initializers/maintenace.rb` to change the maintenance message, response status etc.
112+
Customise the site configuration within `config/initializers/maintenance.rb` to change the maintenance message, response status etc.
113113
Customise the maintenance page within `public/maintenance.html`
114114
All these settings are configurable, to read more see the documentation for the turnout gem https://github.com/biola/turnout and setup your configuration to suit yourself.
115115

lib/easy-deployment/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Easy
22
module Deployment
3-
VERSION = "0.6.2"
3+
VERSION = "0.6.3"
44
end
55
end

lib/easy/generators/maintenance_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def create_maintenance_files
1616
run("bundle install")
1717

1818
say("Maintenance configuration generated", :green)
19-
say(" - TODO: edit config/maintenance.rb setting default_maintenance_page, default_reason and other configuration options", :green)
19+
say(" - TODO: edit config/initializers/maintenance.rb setting default_maintenance_page, default_reason and other configuration options", :green)
2020
say(" - TODO: edit public/maintenance.html to match site styles", :green)
2121

2222
true

lib/easy/generators/templates/maintenance.rb.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# See: https://github.com/biola/turnout#configuration for details on customization
55

66
# This is the rails root location, given this file is located at in Rails.root/config/maintenance.rb
7-
rails_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
7+
rails_root = File.expand_path(File.join(File.dirname(__FILE__), '../..'))
88

99

1010
Turnout.configure do |config|
1111
config.app_root = rails_root
12-
config.named_maintenance_file_paths = {default: config.app_root.join('tmp', 'maintenance.yml').to_s}
12+
config.named_maintenance_file_paths = { default: config.app_root.join('tmp', 'maintenance.yml').to_s }
1313
config.default_maintenance_page = Turnout::MaintenancePage::HTML
14-
config.default_reason = "The site is temporarily down for maintenance.\nPlease check back soon."
14+
config.default_reason = "This site is temporarily down for maintenance."
1515
config.default_allowed_paths = ['/admin','/assets']
1616
config.default_response_code = 503
1717
config.default_retry_after = 3600

0 commit comments

Comments
 (0)