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:
parent
8ffe977ff2
commit
8a58011dde
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*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]
|
||||
|
||||
*1.3.1* (January 5, 2007)
|
||||
|
|
|
@ -88,7 +88,7 @@ task :update_code, :except => { :no_release => true } do
|
|||
# lets the asset timestamping feature of rails work correctly
|
||||
stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S")
|
||||
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
|
||||
# include the newly released path.
|
||||
|
|
Loading…
Reference in a new issue