Re: Compiled Slug size not changing after removing large gems from Gemfile

2010-10-12 Thread Keenan Brock
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 stephenjamesmurd...@gmail.com
 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 her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Compiled Slug size not changing after removing large gems from Gemfile

2010-10-12 Thread Chris Hanks
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 kee...@thebrocks.net 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 stephenjamesmurd...@gmail.com
  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 her...@googlegroups.com.
  To unsubscribe from this group, send email to 
  heroku+unsubscr...@googlegroups.com.
  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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



how video +18??

2010-10-12 Thread hgfds

 how video +18??[1]

Links:
--
[1] http://bit.ly/bcvaFf

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



Re: Koi (how variable is variable?) vs. Ronin (expensive!) vs. Amazon RDS (winner?)

2010-10-12 Thread mattsly
Thanks Chris - that's great to know that you're handling that much
traffic w/ only 2 dynos and Koi. I have highly cachable content as
well, and plan on aggressively using varnish, as well as caches_page
behind that, and then rendering user specific partials (welcome back
username) w/ ajax (sounds like you're doing the same).  I haven't
turned all that on yet, b/c I want to really exercise the full end-to-
end under some load first.

With Koi, are your New Relic DB throughput and response time numbers
pretty consistent?  What is the variance that you're seeing in terms
of database response time for the same queries?  Any sign of timeouts
caused by a slow DB response?

And I wonder if anyone else out there has had success w/ Amazon RDS?
The long-term pricing to get dedicated database is very attractive,
and I'm more familiar w/ MySQL that PostGreSQL

m

p.s. As an aside, I am surprised by how little activity this group
gets?  Latest home page on heroku said there are 90,000+ apps running
on the platform...but like 3 messages posted a day.  Kinda weird?
Implies that either a) people are just using the free hello world
version, or b) it's just that damn easy that nobody is hitting
issues :)



On Oct 7, 11:39 pm, chris mcclellan...@gmail.com wrote:
 It really depends a lot on how well you leverage caching. We run a
 ~1.5mil page views / month site on heroku with just two (2!) dynos and
 koi. But our pages are cached for ~3 hours via varnish, which heroku
 provides for free. All users see (essentially) the same version of the
 site, barring JS-driven login/logout links, and certain admin
 functionality.

 One thing you should keep in mind is that amazon RDS is mysql based
 and heroku runs postgres DBs.

 On Oct 7, 10:42 pm, mattsly matt...@gmail.com wrote:



  I really want to pull the trigger with Heroku.  I love so much of it.
  I'm looking to move over a ~500K page views/month site that is
  decently data intensive, and still weighing my options wrt database,
  which may make or break my decision to use Heroku vs. EY, etc, given
  the price differences.

  Koi seems like a great deal. 20 GB is plenty for my app.  My
  benchmarks so far seem promising. But variable performance has me
  concerned a bit...does anyone have more concrete numbers on just what
  that means?  Anyone running decently high traffic sites on just Koi?

  The jump to Ronin is obviously dramatic in terms of price.  Is there
  any more info on just what a compute unit is?  Like RAM and I/O
  specs? It seems to me, given EC2 prices (small ec2 is ~85/month
  variable, and large = ~910/year term  $100/month), that there should
  be a dedicated option for less than $200/month.  Any hints of a Koi-
  like price drop in the near future here?  My 2 cents to Heroku's
  pricing team would be treat the data layer as a break-even loss
  leader, and make up the revenue on the dyno/worker side...

  Amazon RDS seems like quite possibly the way to go.  3 year term for a
  small instance (1.7 GB) is $350  2 months of the cost of a Ronin
  instance! Has anyone gone this route and had success? Should I be
  worried about latency between Heroku and RDS? (it's all EC2, right?)
  Which zone should I have a DB placed in? (Virginia vs. California?)

  m

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



Re: Compiled Slug size not changing after removing large gems from Gemfile

2010-10-12 Thread guillaume fradin
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 christopher.m.ha...@gmail.com

 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 kee...@thebrocks.net 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 stephenjamesmurd...@gmail.com
   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 her...@googlegroups.com.
   To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
   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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
To unsubscribe from this 

Re: Add SSH Key to Heroku (using Windows/Cygwin)

2010-10-12 Thread Twiek
I followed their guide but it unfortunaltely didn't work for me. I
have a SSH-Key and it seems to work (I used it for opening a github-
Account). The problems start when I enter the following:

$ heroku

or

$ heroku keys:add

This results in the error message seen above. My guess is that it's
some problem specific to cygwin/windows but I'm not sure.

Twiek



On Oct 11, 11:24 pm, Abel Tamayo abel.tam...@gmail.com wrote:
 I would recommend that you follow Heroku's guide 
 here:http://docs.heroku.com/keys
 http://docs.heroku.com/keysMaybe you don't have installed ssh.
 Let us know how that goes and I hope that helps.

 Abel.

 On Mon, Oct 11, 2010 at 6:36 PM, Twiek
 sebastian.schwiec...@googlemail.comwrote:



  Beeing new to programming I'm trying to learn RoR using
  railstutorial.org and ran into a problem in chapter 1.4.1 (http://
  railstutorial.org/book#sec:1.4.1). When trying to add my SSH key to
  Heroku the following happend:

   ba...@basti-pc ~
  $ heroku keys:add
  internal:lib/rubygems/custom_require:29:in `require': no such file
  to load --
  readline (LoadError)
         from internal:lib/rubygems/custom_require:29:in `require'
         from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
  heroku/comma
  nds/app.rb:1:in `top (required)'
         from internal:lib/rubygems/custom_require:29:in `require'
         from internal:lib/rubygems/custom_require:29:in `require'
         from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
  heroku/comma
  nd.rb:5:in `block in top (required)'
         from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
  heroku/comma
  nd.rb:5:in `each'
         from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
  heroku/comma
  nd.rb:5:in `top (required)'
         from internal:lib/rubygems/custom_require:29:in `require'
         from internal:lib/rubygems/custom_require:29:in `require'
         from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/bin/
  heroku:7:in
  `top (required)'
         from /usr/local/bin/heroku:19:in `load'
         from /usr/local/bin/heroku:19:in `main'

  I'm running Windows Vista using Cygwin. I have installed ruby-1.9.2-p0
  and Rails 3.0.0.

  I tried to find a answer elsewhere using google but wasn't able,
  Nevertheles any link helping out would be appreciated as well.

  Thanks in advance,

  Twiek

  --
  You received this message because you are subscribed to the Google Groups
  Heroku group.
  To post to this group, send email to her...@googlegroups.com.
  To unsubscribe from this group, send email to
  heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
  .
  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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Add SSH Key to Heroku (using Windows/Cygwin)

2010-10-12 Thread Abel Tamayo
I don't think many are using Windows with Rails here. Maybe you should try
dual booting with Linux. The new Ubuntu came out just this weekend and you
won't regret the switch ;)

On Tue, Oct 12, 2010 at 4:19 PM, Twiek
sebastian.schwiec...@googlemail.comwrote:

 I followed their guide but it unfortunaltely didn't work for me. I
 have a SSH-Key and it seems to work (I used it for opening a github-
 Account). The problems start when I enter the following:

 $ heroku

 or

 $ heroku keys:add

 This results in the error message seen above. My guess is that it's
 some problem specific to cygwin/windows but I'm not sure.

 Twiek



 On Oct 11, 11:24 pm, Abel Tamayo abel.tam...@gmail.com wrote:
  I would recommend that you follow Heroku's guide here:
 http://docs.heroku.com/keys
  http://docs.heroku.com/keysMaybe you don't have installed ssh.
  Let us know how that goes and I hope that helps.
 
  Abel.
 
  On Mon, Oct 11, 2010 at 6:36 PM, Twiek
  sebastian.schwiec...@googlemail.comwrote:
 
 
 
   Beeing new to programming I'm trying to learn RoR using
   railstutorial.org and ran into a problem in chapter 1.4.1 (http://
   railstutorial.org/book#sec:1.4.1). When trying to add my SSH key to
   Heroku the following happend:
 
ba...@basti-pc ~
   $ heroku keys:add
   internal:lib/rubygems/custom_require:29:in `require': no such file
   to load --
   readline (LoadError)
  from internal:lib/rubygems/custom_require:29:in `require'
  from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
   heroku/comma
   nds/app.rb:1:in `top (required)'
  from internal:lib/rubygems/custom_require:29:in `require'
  from internal:lib/rubygems/custom_require:29:in `require'
  from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
   heroku/comma
   nd.rb:5:in `block in top (required)'
  from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
   heroku/comma
   nd.rb:5:in `each'
  from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/lib/
   heroku/comma
   nd.rb:5:in `top (required)'
  from internal:lib/rubygems/custom_require:29:in `require'
  from internal:lib/rubygems/custom_require:29:in `require'
  from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.10.14/bin/
   heroku:7:in
   `top (required)'
  from /usr/local/bin/heroku:19:in `load'
  from /usr/local/bin/heroku:19:in `main'
 
   I'm running Windows Vista using Cygwin. I have installed ruby-1.9.2-p0
   and Rails 3.0.0.
 
   I tried to find a answer elsewhere using google but wasn't able,
   Nevertheles any link helping out would be appreciated as well.
 
   Thanks in advance,
 
   Twiek
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Heroku group.
   To post to this group, send email to her...@googlegroups.com.
   To unsubscribe from this group, send email to
   heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 heroku%2bunsubscr...@googlegroups.comheroku%252bunsubscr...@googlegroups.com
 
   .
   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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Compiled Slug size not changing after removing large gems from Gemfile

2010-10-12 Thread marcel
I discovered something similar about a month ago. I dug around the
directory structure using heroku console, and noticed that the
deleted gems still existed in the slug's .bundle folder.

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



Re: Dogpile effect with Varnish?

2010-10-12 Thread Thomas Balthazar
Hi Ben,

Any update about this?

Thanks,
Thomas.

On Tue, Oct 5, 2010 at 8:33 PM, Thomas Balthazar gro...@suitmymind.com wrote:
 Hello Ben,

 I just read you were about to talk to the Varnish specialist at Heroku.
 I would really appreciate if you took the time to help me to find the
 answer to those 2 unanswered questions about Varnish and caching :
 http://groups.google.com/group/heroku/browse_thread/thread/8e39658d53c53b7c
 http://groups.google.com/group/heroku/browse_thread/thread/fd23e886c24131b3

 Thanks in advance for your help!
 Thomas.

 On Tue, Oct 5, 2010 at 7:52 PM, Ben Scofield b...@heroku.com wrote:
 Not sure why this didn't come through earlier, but:

 I tried out a few experiments, and it looks like our setup doesn't
 interfere with this default behavior. I'm going to talk to someone
 with more intimate knowledge of our Varnish config to confirm that,
 but so far it looks promising.

 Ben

 On Oct 5, 12:00 pm, Chris Hanks christopher.m.ha...@gmail.com wrote:
 Is anyone from Heroku around that might know how their setup works?

 On Oct 2, 8:42 pm, Chris Hanks christopher.m.ha...@gmail.com wrote:



  I'm wondering about Heroku's use of Varnish. Suppose I have a page
  that is expensive to produce (lots of database queries) but can be
  cached in Varnish. Right after Varnish's copy expires, if it's very
  popular, I might have a dozen people accessing it simultaneously
  before the newly created version can be stashed in Varnish.

  So, based on a thread I found (http://www.gossamer-threads.com/lists/
  varnish/misc/14750) it looks like Varnish is smart enough by default
  to only send that expensive request to my backend once, and serve up
  the response to all the people waiting for it (to prevent a dogpiling
  effect). But I know that Heroku has its own configuration for Varnish
  (with lots of servers in a hash ring), and I was wondering whether
  it's still set up to do this.

  Thanks!

 --
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: You have modified your Gemfile in development but did not check the resulting snapshot (Gemfile.lock) into version control

2010-10-12 Thread stephen murdoch

thank you so much :)

i had no idea you could do this and it works perfectly!


On Oct 12, 5:44 am, Chris Hanks christopher.m.ha...@gmail.com wrote:
 First, to prevent Heroku from installing certain gems, use the
 BUNDLE_WITHOUT config var to specify groups you want to skip. For
 example, I do:

 heroku config:add BUNDLE_WITHOUT=development test

 Then, in my Gemfile:

 source :rubygems
 gem 'rails', '3.0.0'
 group :development, :test do
   gem 'rspec-rails', '2.0.0'
   # etc...
 end

 Now Heroku won't install any of the rspec gems.

 Second, try running bundle update after updating a gem in the
 Gemfile, and it will recalculate all your dependencies and update your
 Gemfile.lock for you. What's even better, though, is to only update
 gems you specify - for example, run bundle update rails if you
 change the rails version in your Gemfile. That way, Bundler will only
 update the things it really needs to, which is safer.

 On Oct 11, 9:09 pm, stephen murdoch stephenjamesmurd...@gmail.com
 wrote:

  I get this error message every now and then:

  You have modified your Gemfile in development but did not check the
  resulting snapshot (Gemfile.lock) into version control

  Most people suggest removing the .bundle directory and running bundle
  install again making sure to add Gemfile.lock to the git repo before
  committing and pushing to heroku but that doesn't always resolve the
  problem.

  The easiest way to fix this is by removing Gemfile.lock and pushing to
  heroku without it.  Heroku then bundles your gems for you, but informs
  you that you will soon be required to include a Gemfile.lock.

  I am trying to get my head round this problem.

  Can anyone tell my why this happens?

  I have on occasions tried wrapping certain gems in my Gemfile within
  and 'if statement' to prevent heroku from installing them as I only
  want them on my dev box.  The error only seems to happen in apps that
  I've used this technique.  Perhaps this is the source of these
  problems?

  When will Heroku start requiring you to add a Gemfile.lock and what
  are the best ways of preventing this problem?



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



Re: Compiled Slug size not changing after removing large gems from Gemfile

2010-10-12 Thread stephen murdoch
yes Keenan, it's definitely my slug size that's creeping up (same
problem others are having)

I did some digging and this is what I found:

According to the command-line output, my bundle is getting installed
to `.bundle/gems`.

I decided to try and vendor my gems to see if this would make a
difference.

Firstly, I downloaded the source for the compass gem and stuck in my
vendor/gems directory.
Then in Gemfile I pointed to the vendored version like so:

   gem 'compass', :path = File.join(File.dirname(__FILE__), '/vendor/
gems/compass')

I ran bundler again and pushed to heroku and watched the gem install
and the slug increase in size.

Then I removed the gem from my vendor directory, bundled and pushed to
heroku again, and this time, the slug size decreased!

So a possible fix for this problem might be to just vendor all gems
until it's sorted out.

Can't say that i've tested this out thoroughly but will give it a shot
tonight when I have time just to be certain.

On Oct 12, 7:52 am, Keenan Brock kee...@thebrocks.net 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 stephenjamesmurd...@gmail.com
  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 her...@googlegroups.com.
  To unsubscribe from this group, send email to 
  heroku+unsubscr...@googlegroups.com.
  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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Add SSH Key to Heroku (using Windows/Cygwin)

2010-10-12 Thread Matthew Todd
On Oct 11, 2010, at 7:36 PM, Twiek wrote:

 Beeing new to programming I'm trying to learn RoR using
 railstutorial.org and ran into a problem in chapter 1.4.1 (http://
 railstutorial.org/book#sec:1.4.1). When trying to add my SSH key to
 Heroku the following happend:
 
  ba...@basti-pc ~
 $ heroku keys:add
 internal:lib/rubygems/custom_require:29:in `require': no such file
 to load --
 readline (LoadError)

Hi, Twiek --

I'm not familiar with installing Ruby in Cygwin, but it looks like you need to 
turn your attention back there. From this error message, it seems readline 
isn't installed.

Cheers,  -- Matthew

smime.p7s
Description: S/MIME cryptographic signature