rails / cssbundling-rails

Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js.
MIT License
579 stars 83 forks source link

Fix `Sprockets::ArgumentError` during deployment #14

Closed mibradev closed 3 years ago

mibradev commented 3 years ago

To avoid error:

Sprockets::ArgumentError: link_tree argument must be a directory.

This should add the pattern like this:

/app/assets/builds/*
!/app/assets/builds/.keep

The same pattern as the one in default .gitignore file generated by rails:

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep