Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku slug size grew 155mb after upgrading from 0.12.6.6 to 0.12.6.8 #185

Open
imarquezc opened this issue Jan 17, 2025 · 1 comment
Open

Comments

@imarquezc
Copy link

Hello, I recently upgraded the hero stack from 22 to 24 and that caused the old version of this gem to stop working.
To fix it I upgraded to 0.12.6.8. The weird thing is that my slug size dramatically increased its size. Maybe it's something else, but this is the only thing I changed.

This is how the PR look like.
Image

And here are the change in slug size.

Before:

Using release configuration from last framework (Ruby).
-----> Discovering process types
       Procfile declares types     -> casetracking_worker, ops_worker, plutto_worker, release, web
       Default types for buildpack -> console, rake
-----> Compressing...
       Done: 536.7M
-----> Launching...
 !     Warning: Your slug size (536 MB) exceeds our soft limit (300 MB) which may affect boot time.
       Released v3328
       https://plutto-kyb-staging.herokuapp.com/ deployed to Heroku

After

Using release configuration from last framework (Ruby).
-----> Discovering process types
       Procfile declares types     -> casetracking_worker, ops_worker, plutto_worker, release, web
       Default types for buildpack -> console, rake
-----> Compressing...
 !     Compiled slug size: 691M is too large (max is 600M).
 !     See: http://devcenter.heroku.com/articles/slug-size
 !     Push failed

Please if you know what could be causing this let me know 🙏🏼

@unixmonkey
Copy link
Collaborator

The gem itself got much bigger between those versions because binaries for Debian 10-12 & Ubuntu 20-21 (i386/amd64/arm64) were added.

This gem has several different binaries for each version of wkhtmltopdf, so that installing this package should work for you, no matter your platform, but it's completely valid to download just the binaries you need and vendor them into your project or deploy pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants