3 ms·
Ask HN: How many of you use .slugignore?
I recently learned about .slugignore, but it seems to be very obscure judging by the scarcity of information about it via Google.
It basically as a .gitignore-esque filter that serves to prevent files from getting compiled into a compressed slug and pushed with your deploys.
In other words, you can put all the files your Heroku app doesn't need to save the push time, bandwidth, and storage space, while the files still remain in your repo, unignored.
http://matthodan.com/2010/08/20/exclude-static-assets-from-heroku-slug.html
https://devcenter.heroku.com/articles/slug-compiler
- anderspetersson 14y agoI had problems with .slugignore not working recursively in folders. Otherwise I would use it alot more.
- kmfrk 14y agoI'm also struggling with making it work properly without workarounds. It feels like it's been abandoned as a feature. Shame, because it's more relevant than ever with PaaS.
- l1ghtm4n 14y agoI use it for a project that is static generated via stasis. Stasis creates a public/ folder with duplicates of JS and CSS files, so I slugignore the originals.