negativetwelve / heroku-buildpack-subdir

Deploy apps from subdirectories to Heroku
77 stars 61 forks source link

Delete original source when copying executables and extra dirs #6

Closed Photonios closed 6 years ago

Photonios commented 6 years ago

Sorry bothering again :)

I noticed that by not removing the directory in my last change, the slug size increased significantly. Without removing them, you basically end up with two copies of all executables. So two Python executables and two Node executables. Depending on the buildpacks you use of course.

On top of that, it seems that the pgbouncer buildpack also uses the bin and vendor directories.

negativetwelve commented 6 years ago

This seems to work for me, thanks for fixing it!