I was actually going to write support about this issue for my app, but I ll
try here first

the slug size of my app has slowly been increasing after each commit, now up
to 73Mb. This is definitely not a big application, so I believe something
wrong is happening. Could easily be my fault, off course.

as heroku mentions here http://docs.heroku.com/slug-compiler, if I want to
try and estimate the slugsize of my app, I do a fresh clone of the rep,
delete the .git dir, and a "du -hsc" shows me 23Mb. big difference.
on top of that, if I also delete directories mentionned in my .slugignore,
it gets down to 6Mb. so I dont understand why there is such a difference.

Could it be from the gemfile? Mine looks like this: (I dont think there is
that many dependencies)

source :gemcutter

gem 'rails', '3.0.0'
gem 'pg'

gem 'awesome_print', '0.2.0'
gem 'aws-s3'
gem 'devise', '1.1.1'
gem 'delayed_job'
gem 'formtastic', '~> 1.1.0'
gem 'haml'
gem 'heroku-autoscale'
gem 'hoptoad_notifier','2.3.6'
gem 'memcached-northscale', '0.19.5.3'
gem 'nokogiri'
gem 'oauth'
gem 'recurly'
gem 'sunspot', '1.2rc2'#, :require => 'sunspot'
gem 'sunspot_rails', '1.2rc2'#, :git => '
http://github.com/outoftime/sunspot.git'#, :branch => "v1.2"
gem 'will_paginate', :git => "git://github.com/mislav/will_paginate.git",
:branch => "rails3"
gem 'warden', '0.10.7'

group :development do
# looks like removing them can free 5-6 Mo of slug size
gem 'compass', '>= 0.10.2'
gem 'ruby-debug', '0.10.3'
gem "yui-compressor"
gem 'closure-compiler'
gem 'heroku'
gem 'heroku_san'
end

anyone has any idea how to reduce it? I feel I could easily get stuck in 6-8
weeks where I could reach the 100Mb limit.

2010/10/12 Chris Hanks <[email protected]>

> According to the Heroku docs (http://docs.heroku.com/slug-compiler),
> the git repository is not included in the slug.
>
> I've had the same experience as Stephen - I'd specify gems in my
> Gemfile that would push the slug size up, and then remove them without
> any effect to the slug size. Then I could destroy the app, create a
> new one from the same git repository and wind up with a smaller slug
> size than I'd had before.
>
>
>
> On Oct 11, 11:52 pm, Keenan Brock <[email protected]> wrote:
> > Hi Stephen,
> >
> > If you checked in a gem into git
> > Then you deleted the gem from git.
> > Git still has the gem.
> > It is not showing up for today, but git log will show when you added it
> and removed it.
> >
> > Guess I do not know if you are checking in your bundle dir and gems into
> git.
> >
> > 1. So are you saying your repo is 17mb, or your slug is 17mb?
> >
> > I'd imagine that the slug would be smaller on your change to the Gemfile.
> > But you stating that your slug is big suggests that maybe the .git
> directory is included in the slug?
> >
> > The slug size does affect the speed in which a dyno is started / compiles
> / restarts.
> > But I agree with Chris, I can't imagine it would slow it down too much.
> >
> > --Keenan
> > On Oct 12, 2010, at 12:48 AM, Chris Hanks wrote:
> >
> >
> >
> > > Yeah, this has happened to me before, too. I'm pretty sure the problem
> > > is on Heroku's end.
> >
> > > I don't worry that much about it, though, since the max slug size is
> > > 100 MB.
> >
> > > On Oct 11, 8:57 pm, stephen murdoch <[email protected]>
> > > wrote:
> > >> I have encountered a few strange problems with Heroku this evening.
> >
> > >> My repo size somehow managed to bloat to 17mb so I removed some gems
> > >> from my Gemfile (ran bundle install, git add Gemfile.lock etc etc) and
> > >> found that my repo was still 17mb.
> >
> > >> I removed all my gems (apart from rails and pg) and the repo didn't
> > >> get any smaller.  My app is no bigger than 2mb.
> >
> > >> So I deleted my app (along with my .git and .bundle directories) and
> > >> created everything from scratch.
> >
> > >> This seemed to fix the problem, until just now, when I tried to remove
> > >> 4 large gems from my Gemfile and didn't see any change in the size of
> > >> my compiled slug on Heroku.
> >
> > >> Is this something that other people are experiencing?
> >
> > >> FWIW, I've tried everything I can think of, including removing
> > >> Gemfile.lock, .bundle etc etc
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "Heroku" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> [email protected]<heroku%[email protected]>
> .
> > > For more options, visit this group athttp://
> groups.google.com/group/heroku?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<heroku%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to