caploy 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/caploy/recipes/deploy.rb +14 -4
- data/lib/caploy/version.rb +1 -1
- 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: cade2ffb36588ce2e2813a0e195ddbc36ef610f5
|
4
|
+
data.tar.gz: fe50bfeb3c64861cb50953eb94778b65d6bc4f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6752f3f15769f105a637aba7ddf87ca4cbc72ce8416c0d40c3e96b785ec0c4782a26291f6d534cc3b89946bbd46c62e4e07d11476336a8532f6be30b168360ba
|
7
|
+
data.tar.gz: 8f1b86822c0227b9878641c5916d8b7c96ac1714ec33b19b06e720033155a824d0f3d659583c05b502cef1280439c6c1ea12fe4c6c977453595eb90d59d5e65b
|
@@ -73,6 +73,8 @@
|
|
73
73
|
# Default value for default_env is {}
|
74
74
|
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
75
75
|
|
76
|
+
set :rake, "#{fetch(:rbenv_prefix)} bundle exec rake"
|
77
|
+
|
76
78
|
namespace :deploy do
|
77
79
|
task :restart do
|
78
80
|
invoke 'unicorn:restart'
|
@@ -80,8 +82,16 @@ namespace :deploy do
|
|
80
82
|
|
81
83
|
desc 'build missing paperclip styles'
|
82
84
|
task :build_missing_paperclip_styles do # app
|
83
|
-
run "cd #{current_path}; RAILS_ENV=#{rails_env} #{rake} paperclip:refresh:missing_styles"
|
85
|
+
run "cd #{current_path}; RAILS_ENV=#{rails_env} #{fetch(:rake)} paperclip:refresh:missing_styles"
|
86
|
+
end
|
87
|
+
|
88
|
+
desc 'generate nondigest assets after default precompiling'
|
89
|
+
task :compile_nondigest_assets do
|
90
|
+
on roles(:app) do
|
91
|
+
execute "cd #{current_path}; RAILS_ENV=#{fetch(:rails_env)} #{fetch(:rake)} assets:precompile:nondigest"
|
92
|
+
end
|
84
93
|
end
|
94
|
+
after 'deploy:compile_assets', 'deploy:compile_nondigest_assets'
|
85
95
|
|
86
96
|
desc "checks whether the currently checkout out revision matches the
|
87
97
|
remote one we're trying to deploy from"
|
@@ -115,8 +125,8 @@ namespace :deploy do
|
|
115
125
|
desc 'Run the full tests on the deployed app. To deploy without tests, try cap deploy:without_tests or cap -S run_tests=0 deploy'
|
116
126
|
task :run_tests do
|
117
127
|
unless fetch(:run_tests, '1') == '0'
|
118
|
-
run "cd #{release_path} && rake db:test:prepare"
|
119
|
-
run "cd #{release_path} && nice -n 10 rake RAILS_ENV=production test"
|
128
|
+
run "cd #{release_path} && #{fetch(:rake)} db:test:prepare"
|
129
|
+
run "cd #{release_path} && nice -n 10 #{fetch(:rake)} RAILS_ENV=production test"
|
120
130
|
end
|
121
131
|
end
|
122
132
|
|
@@ -136,7 +146,7 @@ namespace :deploy do
|
|
136
146
|
desc "Flush cache"
|
137
147
|
task :clear do
|
138
148
|
on roles(:app) do
|
139
|
-
run "cd #{current_path} && #{rake} cache:clear RAILS_ENV=#{rails_env}"
|
149
|
+
run "cd #{current_path} && #{fetch(:rake)} cache:clear RAILS_ENV=#{rails_env}"
|
140
150
|
end
|
141
151
|
end
|
142
152
|
end
|
data/lib/caploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Schiller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemcutter
|