easy-deployment 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog for easy-deployment
2
2
 
3
+ ## 0.5.3 (2013-09-05)
4
+
5
+ Bugfixes:
6
+
7
+ * `bundle_without` was previously set incorrectly in the deploy.rb template, this has been removed from the template. Recommended to remove from your deploy.rb, but low impact.
8
+
9
+ Featues:
10
+
11
+ * Added support for multiple platform apache/passenger in the apache tasks. (apache path can now be set)
12
+ * Logrotate configuration is now run on each deploy. Previously was only hooked on deploy:start which may not always be run for passenger setups.
13
+ * Removed deploy.rb template comments re 'rvm-capistrano' deploying, as we don't primarily deploy off rvm.
14
+ * Links to further documentation on the github wiki added to the deploy.rb file
15
+
3
16
  ## 0.5.2 (2013-08-20)
4
17
 
5
18
  Bugfixes:
@@ -7,6 +7,7 @@ Capistrano::Configuration.instance(:must_exist).load do
7
7
  end
8
8
 
9
9
  set :apachectl_bin, "apache2ctl"
10
+ set :apache_dir, "/etc/apache2"
10
11
 
11
12
  namespace :apache do
12
13
  desc "Configure this site, test the configuration & gracefully reload the Apache configuration"
@@ -23,12 +24,12 @@ Capistrano::Configuration.instance(:must_exist).load do
23
24
  files = capture("for f in #{apache_dir_path}/*; do echo $f; done").split("\r\n")
24
25
  files.each do |file|
25
26
  file_name = file.split(/\/([^\/]+)$/)[1]
26
- run "cp -f #{file} /etc/apache2/sites-available/#{file_name}"
27
- run "ln -fs /etc/apache2/sites-available/#{file_name} /etc/apache2/sites-enabled/#{file_name}"
27
+ run "cp -f #{file} #{apache_dir}/sites-available/#{file_name}"
28
+ run "ln -fs #{apache_dir}/sites-available/#{file_name} #{apache_dir}/sites-enabled/#{file_name}"
28
29
  end
29
30
  else # single apache file (to be deprecated)
30
- run "cp -f #{current_path}/config/deploy/#{stage}/apache.conf /etc/apache2/sites-available/#{application}"
31
- run "ln -fs /etc/apache2/sites-available/#{application} /etc/apache2/sites-enabled/#{application}"
31
+ run "cp -f #{current_path}/config/deploy/#{stage}/apache.conf #{apache_dir}/sites-available/#{application}"
32
+ run "ln -fs #{apache_dir}/sites-available/#{application} #{apache_dir}/sites-enabled/#{application}"
32
33
  end
33
34
 
34
35
  configure_mods
@@ -39,8 +40,8 @@ Capistrano::Configuration.instance(:must_exist).load do
39
40
  passenger_conf = "#{current_path}/config/deploy/#{stage}/passenger.conf"
40
41
 
41
42
  if remote_file_exists?(passenger_conf)
42
- run "cp -f #{passenger_conf} /etc/apache2/mods-available/passenger.conf"
43
- run "ln -fs /etc/apache2/mods-available/passenger.conf /etc/apache2/mods-enabled/passenger.conf"
43
+ run "cp -f #{passenger_conf} #{apache_dir}/mods-available/passenger.conf"
44
+ run "ln -fs #{apache_dir}/mods-available/passenger.conf #{apache_dir}/mods-enabled/passenger.conf"
44
45
  else
45
46
  puts "Passenger.conf not found, not configuring any apache mods"
46
47
  end
@@ -7,5 +7,5 @@ Capistrano::Configuration.instance(:must_exist).load do
7
7
  end
8
8
  end
9
9
 
10
- before 'deploy:start', 'logrotate:setup'
10
+ after 'deploy:update', 'logrotate:setup'
11
11
  end
@@ -12,7 +12,7 @@ end
12
12
  <% unless options[:disable_bugsnag] %>require "bugsnag/capistrano"<% end %>
13
13
  <% unless options[:disable_newrelic] %>require "new_relic/recipes"
14
14
  after "deploy:update", "newrelic:notice_deployment"
15
- <% end %><% unless options[:disable_backup] %># Backup
15
+ <% end %><% unless options[:disable_backup] %># Backup to S3 (read more https://github.com/AbleTech/easy-deployment/wiki/Backup)
16
16
  require "easy/deployment/backup"
17
17
  require "whenever/capistrano"
18
18
  set :whenever_command, "#{fetch(:bundle_cmd, "bundle")} exec whenever"
@@ -30,27 +30,19 @@ set :deploy_via, :remote_cache
30
30
  set :git_shallow_clone, 1
31
31
  # easy-deployment sets the branch to deploy to the current local branch by default.
32
32
 
33
- set :bundle_without, defer { fetch(:stages) - [fetch(:stage)] } # Bundle without other stage environments
34
-
35
33
  set :user, "deploy"
36
34
  set :runner, "deploy"
37
35
 
38
- # Optional feature: apache restarts
36
+ # Optional feature: apache restarts - read more at https://github.com/AbleTech/easy-deployment/wiki/Apache
39
37
  # require "easy/deployment/apache"
40
- # set :apachectl_bin, "/usr/sbin/apachectl"
38
+ # set :apachectl_bin, "/usr/sbin/apachectl" # recommended: set the full path which requires sudo privileges
39
+ # set :apache_dir, "/etc/apache2" # optional to set. default value "/etc/apache2" - set this if your platform has a different path
41
40
 
42
- # Optional feature: configure log rotation
41
+ # Optional feature: configure log rotation - read more at https://github.com/AbleTech/easy-deployment/wiki/Logrotate
43
42
  # require "easy/deployment/logrotate"
44
43
 
45
- # Optional feature: db reference data. Requires easy-reference gem
44
+ # Optional feature: db reference data. Requires [easy_reference_data gem](https://github.com/AbleTech/easy_reference_data)
46
45
  # require "easy/deployment/dbreference"
47
46
 
48
47
  # Optional feature: capistrano performance report. Timings for slow deploys
49
48
  # require "easy/deployment/performance"
50
-
51
-
52
- # If deploying with RVM:
53
- # Add gem 'rvm' to the development group in Gemfile, and uncomment following lines
54
- # require "rvm/capistrano"
55
- # set :rvm_type, :system
56
- # set :rvm_ruby_string, '1.9.2-p290'
@@ -1,5 +1,5 @@
1
1
  module Easy
2
2
  module Deployment
3
- VERSION = "0.5.2"
3
+ VERSION = "0.5.3"
4
4
  end
5
5
  end
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.2
4
+ version: 0.5.3
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-08-20 00:00:00.000000000 Z
15
+ date: 2013-09-05 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails