News for hackers. Stuff that matters.

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

( 3 comments | 4 points | on HN )
Re:Ask HN: How many of you use .slugignore? by l1ghtm4n on Wednesday January 30, 2013 @07:50PM (#5142724)
I 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.
Re:Ask HN: How many of you use .slugignore? by anderspetersson on Wednesday January 30, 2013 @06:46AM (#5139057)
I had problems with .slugignore not working recursively in folders. Otherwise I would use it alot more.
Re:Ask HN: How many of you use .slugignore? by kmfrk on Wednesday January 30, 2013 @08:46AM (#5139409)
I'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.