1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Make the touch command run by update_code set the TZ to UTC, for consistent setting of asset timestamps.

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@5921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2007-01-13 16:30:07 +00:00
parent 8ffe977ff2
commit 8a58011dde
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
*SVN* *SVN*
* Make the touch command run by update_code set the TZ to UTC, for consistent setting of asset timestampes. [NeilW]
* Fix off-by-one bug in show_tasks width-computation [NeilW] * Fix off-by-one bug in show_tasks width-computation [NeilW]
*1.3.1* (January 5, 2007) *1.3.1* (January 5, 2007)

View file

@ -88,7 +88,7 @@ task :update_code, :except => { :no_release => true } do
# lets the asset timestamping feature of rails work correctly # lets the asset timestamping feature of rails work correctly
stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S") stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S")
asset_paths = %w(images stylesheets javascripts).map { |p| "#{release_path}/public/#{p}" } asset_paths = %w(images stylesheets javascripts).map { |p| "#{release_path}/public/#{p}" }
run "find #{asset_paths.join(" ")} -exec touch -t #{stamp} {} \\;; true" run "TZ=UTC find #{asset_paths.join(" ")} -exec touch -t #{stamp} {} \\;; true"
# uncache the list of releases, so that the next time it is called it will # uncache the list of releases, so that the next time it is called it will
# include the newly released path. # include the newly released path.