ruby on rails - On heroku, how to delete files installed by a buildpack that are no longer needed? -
i've started getting slug size errors on deploy:
-----> compiled slug size: 350.4mb large (max 300mb).
my app far small causing this, verified manually inspecting bundle , assets size. upon investigation in one-off dyno, discovered files installed r buildpack still in vendor/ though stopped using buildpack months ago , unset buildpack_url
:
~/vendor $ du -h --max-depth 1 90m ./ruby-2.0.0 28k ./plugins 24k ./heroku 122m ./bundle 113m ./glibc-2.7 16m ./bin 95m ./gcc-4.3 36m ./ruby-1.9.3 104k ./assets 87m ./r 1.2m ./gems 450m ./libexec 108k ./redis-rb 1008m .
deleting them in one-off dyno doesn't it; reappear in new one.
how can make these directories, r/
, gcc-4.3/
permanently go away?
it possible r buildpack placed these files build's cache dir , ruby buildpack still pulling in. unlikely 2 buildpacks conflict way, possible. recommend trying push code brand new app , see if slug size drops. if so, can use third-party/unsupported heroku-repo plugin purge build cache on original app.
Comments
Post a Comment