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: Uninstall devDependencies after build #198

Merged
merged 1 commit into from Oct 1, 2019

Conversation

josephfrazier
Copy link
Owner

This should help reduce the size of the slug. From https://dashboard.heroku.com/apps/reported-web/activity/builds/c343e368-6f2d-454f-97b1-de7c67723b88:

 !     Warning: Your slug size (307 MB) exceeds our soft limit (300 MB) which may affect boot time.

See https://devcenter.heroku.com/changelog-items/1145
and yarnpkg/yarn#696 (comment)

This should help reduce the size of the slug. From https://dashboard.heroku.com/apps/reported-web/activity/builds/c343e368-6f2d-454f-97b1-de7c67723b88:

     !     Warning: Your slug size (307 MB) exceeds our soft limit (300 MB) which may affect boot time.

See https://devcenter.heroku.com/changelog-items/1145
and yarnpkg/yarn#696 (comment)
@josephfrazier josephfrazier merged commit a35972b into master Oct 1, 2019
@josephfrazier josephfrazier deleted the heroku.prune.devDependencies branch October 1, 2019 01:24
josephfrazier added a commit that referenced this pull request Oct 1, 2019
josephfrazier added a commit that referenced this pull request Oct 1, 2019
Reverts #198

It didn't actually help, according to https://dashboard.heroku.com/apps/reported-web/activity/builds/f415ccb0-df01-4339-8d58-ef3c4fa60da3:

     !     Warning: Your slug size (307 MB) exceeds our soft limit (300 MB) which may affect boot time.

This is likely because heroku does it already: https://devcenter.heroku.com/articles/nodejs-support#package-installation

This reverts commit a35972b.
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

Successfully merging this pull request may close these issues.

None yet

1 participant