easy-deployment 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -3
- data/lib/easy-deployment/version.rb +1 -1
- data/lib/easy/generators/maintenance_generator.rb +1 -1
- data/lib/easy/generators/templates/maintenance.rb.tt +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd90d481e090583b471f4fa937b0ff5d02f7ef79
|
4
|
+
data.tar.gz: d3ff2319b207c68be23988ad1be6e98ca17aa730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d334718172b40231652761b808319ec88a2d440064bfb8dcaea828617529d792bc83623512e614b7a9cea3145973635c7d0f2ce99e55652202f033e47a112e50
|
7
|
+
data.tar.gz: edc3bb61773740d1f4d37e766cd8695d2ea14918dd8477c451b9a29940a12a629b6688ecab95669de5495be34dc9520da4cc492f84afc7d4c42c43e7761ac300
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -101,15 +101,15 @@ All these settings are configurable, to read more see the documentation for the
|
|
101
101
|
|
102
102
|
### Maintenance
|
103
103
|
|
104
|
-
This includes a generator to create a maintenance mode configuration (generator is run by itself as `rails generate easy:
|
104
|
+
This includes a generator to create a maintenance mode configuration (generator is run by itself as `rails generate easy:maintenance`)
|
105
105
|
|
106
106
|
This will generate:
|
107
107
|
|
108
|
-
config/initializers/
|
108
|
+
config/initializers/maintenance.rb
|
109
109
|
public/maintenance.html
|
110
110
|
public/maintenance.json
|
111
111
|
|
112
|
-
Customise the site configuration within `config/initializers/
|
112
|
+
Customise the site configuration within `config/initializers/maintenance.rb` to change the maintenance message, response status etc.
|
113
113
|
Customise the maintenance page within `public/maintenance.html`
|
114
114
|
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.
|
115
115
|
|
@@ -16,7 +16,7 @@ module Easy
|
|
16
16
|
run("bundle install")
|
17
17
|
|
18
18
|
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)
|
20
20
|
say(" - TODO: edit public/maintenance.html to match site styles", :green)
|
21
21
|
|
22
22
|
true
|
@@ -4,14 +4,14 @@
|
|
4
4
|
# See: https://github.com/biola/turnout#configuration for details on customization
|
5
5
|
|
6
6
|
# 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__), '../..'))
|
8
8
|
|
9
9
|
|
10
10
|
Turnout.configure do |config|
|
11
11
|
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 }
|
13
13
|
config.default_maintenance_page = Turnout::MaintenancePage::HTML
|
14
|
-
config.default_reason = "
|
14
|
+
config.default_reason = "This site is temporarily down for maintenance."
|
15
15
|
config.default_allowed_paths = ['/admin','/assets']
|
16
16
|
config.default_response_code = 503
|
17
17
|
config.default_retry_after = 3600
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy-deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Olliver
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-11-
|
15
|
+
date: 2015-11-30 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rails
|