{"comment":{"created_at":"2011-10-26T12:53:50Z","body":"+1","updated_at":"2011-10-26T12:53:50Z","url":"https://api.github.com/repos/capistrano/capistrano/issues/comments/2529923","id":2529923,"user":{"avatar_url":"https://secure.gravatar.com/avatar/2d643c10e432e230c9d4bf97d15d6a46?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2d643c10e432e230c9d4bf97d15d6a46","url":"https://api.github.com/users/cgriego","id":4805,"login":"cgriego"}},"action":"created","issue":{"number":121,"created_at":"2011-10-26T11:50:30Z","pull_request":{"diff_url":"https://github.com/capistrano/capistrano/pull/121.diff","patch_url":"https://github.com/capistrano/capistrano/pull/121.patch","html_url":"https://github.com/capistrano/capistrano/pull/121"},"body":"I suggest to default the `:normalize_asset_timestamps` to false (normally is true) when the asset pipeline is enabled. Otherwise, `capistrano` will continue to run the following command\r\n\r\n```ruby\r\nif fetch(:normalize_asset_timestamps, true)\r\n  stamp = Time.now.utc.strftime(\"%Y%m%d%H%M.%S\")\r\n  asset_paths = fetch(:public_children, %w(images stylesheets javascripts)).map { |p| \"#{latest_release}/public/#{p}\" }.join(\" \")\r\n  run \"find #{asset_paths} -exec touch -t #{stamp} {} ';'; true\", :env => { \"TZ\" => \"UTC\" }\r\nend\r\n```\r\n\r\nThis command is useless in Rails 3.1. It also generates an error because the public folders are no longer there.\r\n\r\n```\r\n\r\n * executing \"find /path/to/application/releases/20111026112344/public/images /path/to/application/releases/20111026112344/public/stylesheets /path/to/application/releases/20111026112344/public/javascripts -exec touch -t 201110261123.47 {} ';'; true\"\r\n   servers: [\"octopus\"]\r\n   [octopus] executing command\r\n** [out :: octopus] find: `/path/to/application/releases/20111026112344/public/images': No such file or directory\r\n** [out :: octopus] \r\n** [out :: octopus] find: `/path/to/application/releases/20111026112344/public/stylesheets'\r\n** [out :: octopus] : No such file or directory\r\n** [out :: octopus] find: `/path/to/application/releases/20111026112344/public/javascripts'\r\n** [out :: octopus] : No such file or directory\r\n** [out :: octopus] \r\n   command finished in 668ms\r\n```","comments":1,"title":"Disable :normalize_asset_timestamps when the asset pipeline is enabled","updated_at":"2011-10-26T12:53:50Z","url":"https://api.github.com/repos/capistrano/capistrano/issues/121","id":2055843,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/99e0b39c091e10d9c7d4452a34ca52dc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"99e0b39c091e10d9c7d4452a34ca52dc","url":"https://api.github.com/users/weppos","id":5387,"login":"weppos"},"html_url":"https://github.com/capistrano/capistrano/issues/121","labels":[],"state":"open"},"legacy":{"issue_id":2055843,"comment_id":2529923}}