easy-deployment 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog for easy-deployment
|
2
2
|
|
3
|
+
## 0.5.2 (2013-08-20)
|
4
|
+
|
5
|
+
Bugfixes:
|
6
|
+
|
7
|
+
* Fix misplaced comments in the default `apache.conf` template that this library generates
|
8
|
+
|
9
|
+
New Features:
|
10
|
+
|
11
|
+
* Added support for rails asset caching in apache.conf template (provided expires module is enabled)
|
12
|
+
* Added links to further documentation on passenger VirtualHost patterns to the github wiki
|
13
|
+
|
3
14
|
## 0.5.1 (2013-05-27)
|
4
15
|
|
5
16
|
Bugfixes:
|
@@ -15,7 +26,7 @@ New Features:
|
|
15
26
|
* Apache/passenger config template now sets `PassengerMinInstances` and provides some disabled example tuning options
|
16
27
|
* Specified license in the gemspec
|
17
28
|
|
18
|
-
## 0.5.0
|
29
|
+
## 0.5.0 (2013-04-05)
|
19
30
|
|
20
31
|
Large rewrite of both templates, and generator code.
|
21
32
|
|
@@ -35,32 +46,32 @@ Bug Fixes:
|
|
35
46
|
* `deploy.rb` and `staging.rb` etc files are rendered correctly as templates, instead of copied over without rendering
|
36
47
|
* use `deploy:create_symlink` instead of deprecated `deploy:symlink`
|
37
48
|
|
38
|
-
## 0.4.4
|
49
|
+
## 0.4.4 (2013-01-11)
|
39
50
|
|
40
51
|
Bug Fixes:
|
41
52
|
|
42
53
|
* Bugfix for previous niet role definition, variable should be delayed being evaluated
|
43
54
|
|
44
|
-
## 0.4.3
|
55
|
+
## 0.4.3 (2013-01-10)
|
45
56
|
|
46
57
|
Enhancements:
|
47
58
|
|
48
59
|
* the server role for the niet tasks are now configurable via `set :niet_roles, [:job]`
|
49
60
|
|
50
|
-
## 0.4.2
|
61
|
+
## 0.4.2 (2013-01-09)
|
51
62
|
|
52
63
|
Enhancements:
|
53
64
|
|
54
65
|
* path to the binary apachectl command is now able to be configured via `set :apachectl_bin`
|
55
66
|
* Added documentation to README.md for several of the optional features
|
56
67
|
|
57
|
-
## 0.4.1
|
68
|
+
## 0.4.1 (2012-12-10)
|
58
69
|
|
59
70
|
Bug Fixes:
|
60
71
|
|
61
72
|
* raise exception if `cap niet:start` is run without `cap niet:setup` being run first
|
62
73
|
|
63
|
-
## 0.4.0
|
74
|
+
## 0.4.0 (2012-11-19)
|
64
75
|
|
65
76
|
Enhancements:
|
66
77
|
|
@@ -68,19 +79,19 @@ Enhancements:
|
|
68
79
|
* apache:configure task now copies a folder stage/apache/* if present falling back to previous state/apache.conf
|
69
80
|
* added `easy/deployment/performance` optional require to track the times of deployments
|
70
81
|
|
71
|
-
## 0.3.3
|
82
|
+
## 0.3.3 (2012-10-16)
|
72
83
|
|
73
84
|
Bug Fixes
|
74
85
|
|
75
86
|
* `deploy:reference` should use the rails_env, not the stage
|
76
87
|
|
77
|
-
## 0.3.0
|
88
|
+
## 0.3.0 (2012-09-04)
|
78
89
|
|
79
90
|
Enhancements:
|
80
91
|
|
81
92
|
* Add `apache:configure_and_reload` capistrano task, which will configure the site, test the configuration & gracefully reload the Apache configuration
|
82
93
|
|
83
|
-
## 0.2.2
|
94
|
+
## 0.2.2 (2012-08-27)
|
84
95
|
|
85
96
|
Enhancements:
|
86
97
|
|
data/README.md
CHANGED
@@ -48,12 +48,14 @@ If necessary, you can set the path to the apache2ctl binary via:
|
|
48
48
|
|
49
49
|
set :apachectl_bin, "/usr/sbin/apachectl"
|
50
50
|
|
51
|
-
This assumes your deploy user has access to run the apachectl command with sudo privileges. As a recommended security practice, your deploy user should not have general sudo access, instead configure limited sudo access for specific commands only, declaring the full binary path
|
51
|
+
This assumes your deploy user has access to run the apachectl command with sudo privileges. As a recommended security practice, your deploy user should not have general sudo access, instead configure limited sudo access for specific commands only, declaring the full binary path. Having passwordless sudo *only* for these limited commands can make this smoother, but is not a requirement - capistrano will prompt for sudo password if that is required.
|
52
52
|
|
53
53
|
# Example sudoers file entries to grant deploy user passwordless sudo privileges to only these commands
|
54
54
|
deploy ALL=(ALL) NOPASSWD:/usr/sbin/apachectl graceful
|
55
55
|
deploy ALL=(ALL) NOPASSWD:/usr/sbin/apachectl configtest
|
56
56
|
|
57
|
+
Read more about passenger configuration on our wiki at https://github.com/AbleTech/easy-deployment/wiki/Common-passenger-config
|
58
|
+
|
57
59
|
### Logrotate
|
58
60
|
|
59
61
|
Automatically configure logrotate for your application logfile:
|
@@ -36,6 +36,14 @@ TODO:
|
|
36
36
|
say(" * Set the ip address for staging in config/deploy/#{stage}.rb && the apache config in config/deploy/#{stage}/apache.conf", :green)
|
37
37
|
end
|
38
38
|
|
39
|
+
add_optional_operational_gems
|
40
|
+
|
41
|
+
true
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def add_optional_operational_gems
|
39
47
|
needs_bundle = false
|
40
48
|
|
41
49
|
unless options[:disable_newrelic]
|
@@ -55,8 +63,6 @@ TODO:
|
|
55
63
|
end
|
56
64
|
|
57
65
|
bundle_command(:install) if needs_bundle
|
58
|
-
|
59
|
-
true
|
60
66
|
end
|
61
67
|
|
62
68
|
end
|
@@ -1,3 +1,6 @@
|
|
1
|
+
# Read more about different configurations for Apache/passenger at https://github.com/AbleTech/easy-deployment/wiki/Common-passenger-config
|
2
|
+
# TODO: customize this config file prior to deploying
|
3
|
+
|
1
4
|
<VirtualHost *:80>
|
2
5
|
ServerName <%= name %>.<%= application_name %>.co.nz
|
3
6
|
|
@@ -5,12 +8,28 @@
|
|
5
8
|
RackEnv <%= name %>
|
6
9
|
|
7
10
|
# Passenger tuning
|
8
|
-
|
9
|
-
|
10
|
-
#
|
11
|
+
# at least 1 prevents passenger going to sleep after 15min inactivity, increase as desired
|
12
|
+
PassengerMinInstances 1
|
13
|
+
# Pre-load app on deploy. This needs to match the ServerName above
|
14
|
+
# PassengerPreStart http://<%= name %>.<%= application_name %>.co.nz
|
15
|
+
# If you don't need any apache mods within this VirtualHost, you may turn high performance mode on
|
16
|
+
# PassengerHighPerformance on
|
11
17
|
|
12
18
|
<Directory /var/apps/<%= application_name %>/current/public>
|
13
19
|
AllowOverride all
|
14
20
|
Options -MultiViews
|
15
21
|
</Directory>
|
22
|
+
|
23
|
+
# Rails asset caching - will only be enabled if 'expires' module is enabled.
|
24
|
+
<IfModule expires_module>
|
25
|
+
<Location /assets/>
|
26
|
+
# Use of ETag is discouraged when Last-Modified is present
|
27
|
+
Header unset ETag
|
28
|
+
FileETag None
|
29
|
+
# RFC says only cache for 1 year
|
30
|
+
ExpiresActive On
|
31
|
+
ExpiresDefault "access plus 1 year"
|
32
|
+
</Location>
|
33
|
+
</IfModule>
|
34
|
+
|
16
35
|
</VirtualHost>
|
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.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-
|
15
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rails
|
@@ -149,3 +149,4 @@ summary: Gem for encapsulating Abletech's deployment practices
|
|
149
149
|
test_files:
|
150
150
|
- spec/easy_deployment_spec.rb
|
151
151
|
- spec/spec_helper.rb
|
152
|
+
has_rdoc:
|