What is Slug size? I also read on the English stack that in addition to 300 MB there is access to a “local file system” where you can store up to 1GB. How to do it?

    1 answer 1

    When you upload your web application to heroa, the server performs a series of standard tasks depending on the technology stack. These are assembly of styles and scripts, minification and compression of files, etc.

    Ultimately, the server receives an application assembled and ready to run. With all the styles, scripts, images and other resources. Such an application in heroku is called slug .

    And slug size is the allowable size of such an application. That is, if your application in a packaged for launching form weighs more than 300 MB, it will not launch it.

    Therefore, pay attention to the resources that you store in the repository with the project. Archives, videos, heavy graphics - it’s best to keep them in a separate repository with code, rather than in a repository with code. For example, on AWS S3 .


    Access to the file system can be given to the hero, but for storing temporary files - cache, files on upload. In such a storage should not keep long-term files. Again, it is better to tie an external repository to the project.