Page 239 of Agile Web Development with Rails instructs us to add the vendor/cache directory to git.
Is this actually recommended practice? I was under the impression that this directory was platform-specific. Will it cause problems to commit a cache dir under OSX and then deploy to prod under Linux?
This is where your app’s gems are stored if you package them locally. So if you deploy from the SCM source and you want to use the exact gem packages that you are using locally, you’ll need these files, which is why I suspect the book suggests this.
As far as the gem files go, it won’t cause a problem if you develop on a Mac and deploy to a Linux server.