thoughtbot / dotfiles

A set of vim, zsh, git, and tmux configuration files.
https://thoughtbot.com
Other
7.99k stars 1.86k forks source link

`/vendor` in `.gitignore` breaks Rails 7 deploys #697

Closed andyw8 closed 1 year ago

andyw8 commented 2 years ago

By default, a new Rails 7 app will create:

vendor/.keep
vendor/javascript/.keep

.gitignore has a /vendor entry (since #596) which prevents these from being committed.

The second path is referenced in app/assets/config/manifest.js. When that path doesn't exist, deploys will fail with:

Sprockets::ArgumentError: link_tree argument must be a directory
/[...]/releases/20220430191140/app/assets/config/manifest.js:4