-
Notifications
You must be signed in to change notification settings - Fork 69
Errors like `find: ' srv example releases 20120712140049 public images': no such file or directory`
technicalpickles edited this page Jul 12, 2012
·
1 revision
If you are using Rails 3.1+ and have the asset pipeline enabled, you may see errors like this during the deploy:
* executing "find /srv/example/releases/20120712140049/public/images /srv/example/releases/20120712140049/public/stylesheets /srv/example/releases/20120712140049/public/javascripts -exec touch -t 201207121400.55 {} ';'; true" servers: ["www.example.com"] [www.example.com] executing command ** [out :: www.example.com] find: `/srv/example/releases/20120712140049/public/images': No such file or directory ** [out :: www.example.com] find: `/srv/example/releases/20120712140049/public/stylesheets': No such file or directory ** [out :: www.example.com] find: `/srv/example/releases/20120712140049/public/javascripts': No such file or directory
This is Capistrano attempting to normalize all timestamps, in order for mtimes to be consistent across multiple servers. The asset pipeline has it's own way of dealing with that though, so it's not necessarily. It can be disabled by adding this to config/moonshine.yml
:
:normalize_asset_timestamps: false