Read more

Fix Capistrano warnings: Missing public directories

Henning Koch
May 03, 2012Software engineer at makandra GmbH

I got these warnings while deploying a Rails 3.2 app with asset pipeline enabled:

*** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/images': No such file or directory
*** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/stylesheets': No such file or directory
*** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/javascripts': No such file or directory
Illustration online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
Read more Show archive.org snapshot

Folders like public/javascripts might not exist if you're using the asset pipeline (everything lives in app/assets).

I got rid of the warnings by committing empty files into Git:

  • public/images/.gitkeep
  • public/javascripts/.gitkeep
  • public/stylesheets/.gitkeep
Posted by Henning Koch to makandra dev (2012-05-03 14:01)