Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 3/7/2012

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 .git directory in your submodules. This unnecessarily inflates the slug’s size. To circumvent this make a .slugignore file in your app’s root directory add path/to/submodule/.git to it. You can also use .slugignore to ignore specs, docs, etc…

Comments
  1. 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

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *