如何减少heroku slu size大小? [英] How to reduce heroku slug size?

查看:169
本文介绍了如何减少heroku slu size大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的slu size大小为89.5MB,非常庞大。

My slug size is 89.5MB which is huge.

然而,存储库大小非常小:

However the repository size is quite small:

$ du -hsc 
8.0M    . 
8.0M    total

关注此博客文章:http://dazedthots.blogspot.com/2011/07/reducing-slug-size-heroku.html ,那里是Heroku改变Gemfiles时的一个bug。我已经改变了几次,包括git依赖,但现在,唯一的git依赖是rails_admin。见下:

Following this blog post: http://dazedthots.blogspot.com/2011/07/reducing-slug-size-heroku.html , there is a bug on Heroku with changing Gemfiles. Mine has changed several times including git dependencies but now, the only git dependency is "rails_admin". See below:

source 'http://rubygems.org'

gem 'rails',      '~> 3.1.0'
gem 'rails-i18n', '~> 0.1.3'
gem 'pg',         '~> 0.11.0'
gem 'rake',       '~> 0.8.7'
gem 'thin', '~> 1.2.11'
gem 'heroku', '~> 2.4.0'
gem 'squeel',     '~> 0.8.6'
gem 'devise', '~> 1.4.2'
gem 'slim-rails',  '~> 0.2.0'
gem 'simple_form', '~> 1.4.2'
gem 'will_paginate', '~> 3.0'
gem 'sunspot_rails', '~> 1.2.1'
gem 'jquery-rails',    '~> 1.0.12'
gem 'modernizr-rails', '~> 2.0.6'
gem 'rails_admin', git: 'https://github.com/sferik/rails_admin.git'
gem 'sass-rails',   '~> 3.1.0'
gem 'coffee-rails', '~> 3.1.0'
gem 'uglifier',     '~> 1.0.0'
gem 'newrelic_rpm'

我已经联系了Heroku支持,但没有直到现在回答?任何想法?

I've contacted the Heroku support but no answer until now? Any idea?

推荐答案

最后,3天后,Heroku清理了我的缓存。
现在一切正常,虽然我的slu is仍然是54MB,看起来太大了。

Finally, after 3 days, Heroku cleaned up my cache. Everything is fine now though my slug is still 54MB which seems too big.

Heroku确认除了联系他们解决这个问题之外没有别的解决方案。希望它能在未来的捆绑软件中解决。

Heroku confirmed there was no other solution than contacting them to resolve this issue. Hopefully, it will be resolved in a future version of bundler.

这篇关于如何减少heroku slu size大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆