New Faces
No new faces today
Help
What is the approved way of finding out if a migration is pending? Trying to avoid Heroku restart.
Interesting
Heroku + submodule: .slugignore is your friend!
Onsi says:
Heroku supports git submodules! However, when building your slugs it includes the
.gitdirectory in your submodules. This unnecessarily inflates the slug’s size. To circumvent this make a.slugignorefile in your app’s root directory addpath/to/submodule/.gitto it. You can also use.slugignoreto ignore specs, docs, etc…
Thanks for the .slugignore tip!
One thing I might add, it supports wildcards but Heroku is extremely slow (2+ minutes) to resolve them for some reason.
I tried this for slugignore:
node_modules/*/.git
Instead, ended up generating it dynamically like this:
find node_modules/*/.git -type d -maxdepth 0 > .slugignore
March 12, 2012 at 7:44 pm