The slug compiler

The slug compiler is responsible for creating an executable application from raw code by building the application, linking required binaries, and compressing the executable for faster deployment. The end product of the slug compilation process is what is termed as the slug.

Once the slugs are generated, they are compressed to decrease their size. Slugs are pre-packaged copies of the application optimized for quick distribution across the dyno manifold—Heroku's process execution environment. When we git push to Heroku, the code is sent to the slug compiler that transforms the user repository into a slug. Scaling an application then causes the slug to be downloaded and expanded for execution on a dyno.

The slug compiler is invoked ...

Get Heroku Cloud Application Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.