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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)