public
Description: Remote multi-server automation tool
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Search Repo:
Added a :normalize_asset_timestamps property.

This is queried in finalize_update to determine whether or not to
touch all of the assets.  Subversion has a configuration option
(use-commit-timestamps), which renders this process unnecessary if
set.
jtrupiano (author)
Sat Jun 07 12:20:12 -0700 2008
jamis (committer)
Mon Jun 09 20:53:03 -0700 2008
commit  5d1d9d9ddc5c957f057ed866e091ef91ec2129fa
tree    251bff791137de0134b6d8d8858e2169611d5bb2
parent  1b7525e362a4c9735cdb0f502f21e0f323e33a75
...
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
0
@@ -1,3 +1,8 @@
0
+*unreleased*
0
+
0
+* Added :normalize_asset_timestamps option to deployment, defaulting to true, which allows asset timestamping to be disabled [John Trupiano]
0
+
0
+
0
 *2.4.0 Preview Release #1* (2.3.101) June 5, 2008
0
 
0
 * Only make deploy:start, deploy:stop, and deploy:restart try sudo as :runner. The other sudo-enabled tasks (deploy:setup, deploy:cleanup, etc.) will now use the :admin_runner user (which by default is unset). [Jamis Buck]
...
208
209
210
211
 
 
 
212
213
214
...
224
225
226
227
228
229
 
 
 
 
 
230
231
232
...
208
209
210
 
211
212
213
214
215
216
...
226
227
228
 
 
 
229
230
231
232
233
234
235
236
0
@@ -208,7 +208,9 @@ namespace :deploy do
0
     symlinks to the shared directory for the log, system, and tmp/pids \
0
     directories, and will lastly touch all assets in public/images, \
0
     public/stylesheets, and public/javascripts so that the times are \
0
- consistent (so that asset timestamping works).
0
+ consistent (so that asset timestamping works). This touch process \
0
+ is only carried out if the :normalize_asset_timestamps variable is \
0
+ set to true, which is the default.
0
   DESC
0
   task :finalize_update, :except => { :no_release => true } do
0
     run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true)
0
@@ -224,9 +226,11 @@ namespace :deploy do
0
       ln -s #{shared_path}/pids #{latest_release}/tmp/pids
0
     CMD
0
 
0
- stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S")
0
- asset_paths = %w(images stylesheets javascripts).map { |p| "#{latest_release}/public/#{p}" }.join(" ")
0
- run "find #{asset_paths} -exec touch -t #{stamp} {} ';'; true", :env => { "TZ" => "UTC" }
0
+ if fetch(:normalize_asset_timestamps, true)
0
+ stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S")
0
+ asset_paths = %w(images stylesheets javascripts).map { |p| "#{latest_release}/public/#{p}" }.join(" ")
0
+ run "find #{asset_paths} -exec touch -t #{stamp} {} ';'; true", :env => { "TZ" => "UTC" }
0
+ end
0
   end
0
 
0
   desc <<-DESC

Comments

    No one has commented yet.