haha, great idea! very resourceful.

On Thu, Mar 25, 2010 at 3:32 PM, Ben Lavender <[email protected]> wrote:
> The resulting slug was 48MB--webrat is no slouch.
>
> There is an easy workaround.  Heroku config variables are available
> inside bundler, so I did heroku config:add IS_HEROKU=true, then, in my
> Gemfile (code not copy/pasted, care):
>
> if ENV['IS_HEROKU']
>  gem 'pg'
>  ...
> else
>  gem 'mysql'
>  gem 'rspec-rails'
>  ...
> end
>
> That got me down to something more reasonable.  I must admit that when
> compiling slugs, it would be nice if Bundler would say exactly what
> requires what, so if a particular dependency is too big one can more
> easily track down what wants it.
>
> At any rate, if there's no 'correct' fix, I'll survive with this.
> Thanks for the help.
>
> Ben
>
> On Mar 25, 9:18 pm, Oren Teich <[email protected]> wrote:
>> From talks with the bundler team, they won't be ditching this anytime soon.
>>
>> Ben,
>> How big is your slug?  If it's <30 or 40MB, I wouldn't worry about it.
>>
>> Oren
>>
>> On Thu, Mar 25, 2010 at 1:13 PM, Pedro Belo <[email protected]> wrote:
>> > Hi Ben,
>>
>> > Last time I checked Bundler would always download gems, even if you
>> > set your environment --without certain groups. They don't show up at
>> > the bundler environment file, but they're downloaded in the process of
>> > figuring out dependencies.
>>
>> > We should check whether it can be patched to not download the full gem.
>>
>> > On Wed, Mar 24, 2010 at 6:09 AM, Ben Lavender <[email protected]> wrote:
>> > > Hello,
>>
>> > > I'm working on a Rails 3 app using Bundler to specify gems.  Like many
>> > > projects, we have some development-only dependencies, including
>> > > Webrat.  We've got these gems specified in a :test group.
>>
>> > > On a local machine, we can bring in dependencies without the test
>> > > dependencies with 'bundle install --without=test'.  Is there a way to
>> > > specify this flag to a heroku deployment?  I do not see it in the
>> > > existing documentation, and Webrat pushes our slug sizes up to
>> > > 'ridiculous'.
>>
>> > > Thanks,
>> > > Ben
>>
>> > > --
>> > > 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]<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.
>
>

-- 
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