capistrano-deploy-management 0.1.46 → 0.1.47

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.
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'capistrano-deploy-management'
4
4
  s.description = 'Collection of Capistrano recipes for deploying Rails apps into high-performance environments'
5
- s.version = '0.1.46'
5
+ s.version = '0.1.47'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ['Dominik Rodler']
8
8
  s.email = ['dominik.rodler@gmail.com']
data/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ - 0.1.47
2
+ added task to show remote log files
3
+
1
4
  - 0.1.37..46
2
5
  try to fix stopping and restarting of unicorn
3
6
 
@@ -26,6 +26,14 @@ module CapistranoDeployManagement
26
26
  end
27
27
  end
28
28
 
29
+ namespace :log do
30
+ # TODO: add argument to specify arbitrary log files; default is environment log
31
+ desc 'Show remote log file'
32
+ task :show do
33
+ run "tail -n 100 -f #{current_path}/log/#{rails_env}.log"
34
+ end
35
+ end
36
+
29
37
  end
30
38
  end
31
39
  end
@@ -18,23 +18,6 @@ module CapistranoDeployManagement
18
18
  # end
19
19
  # end
20
20
  end
21
-
22
- desc 'Precompile assets only if any assets have changed.'
23
- task :lazy_precompile do
24
- current_revision = "cat #{current_path}/REVISION"
25
- head_revision = "cat #{latest_release}/REVISION"
26
- assets_paths = ["#{latest_release}/app/assets/", "#{latest_release}/lib/assets/", "#{latest_release}/vendor/assets/"]
27
- precompilation_required = false
28
-
29
- assets_paths.each do |a|
30
- if capture("cd #{latest_release} && svn log -r $(#{current_revision}):$(#{head_revision}) #{a} | wc -l").to_i > 0
31
- precompilation_required = true
32
- else
33
- logger.info "Skipping pre-compilation for assets in #{a} because there were no asset changes."
34
- end
35
- end
36
- run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile" if precompilation_required
37
- end
38
21
  end
39
22
  end
40
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deploy-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.46
4
+ version: 0.1.47
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
12
+ date: 2012-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano