On Sat, Sep 14, 2013 at 8:20 PM, Kannu Mehta <[email protected]> wrote:
> My rails app doesn't function properly when I install a new new buildpack.
> When I run 'heroku ps', it shows that the dyno crashed.
>
> Here are my Heroku logs:
>
> /usr/local/lib/ruby/1.9.1/rubygems.rb:328:in bin_path': can't find gem
> bundler (>= 0)   (Gem::GemNotFoundException)
> from <internal:gem_prelude>:199:inmethod_missing'
> 2013-09-14T17:54:40.029673+00:00 app[web.1]: from /app/bin/bundle:3:in `'
> 2013-09-14T17:54:41.382417+00:00 heroku[web.1]: Process exited with status 1
> 2013-09-14T17:54:41.393537+00:00 heroku[web.1]: State changed from starting
> to crashed
>
> My suspicion: I think the environment variables are being overwritten after
> installing the buildpack. This is confirmed when I compared the $PATH
> variable before and after installing the buildpack. I tried to set the
> $PATH, $GEM_PATH manually (using config:set) but no success yet. I doubt if
> there are some other variables which are being over written too. The
> buildpack I'm trying to install is or heroku config:
>
> BUILDPACK_URL: git://github.com/kannumehta/heroku-buildpack-tex.git
> GEM_PATH: vendor/bundle/ruby/2.0.0:/app/vendor/bundle/ruby/2.0.0
> PATH:/app/bin:/app/vendor/bundle/ruby/2.0.0/bin:/usr/local/bin:/usr/bin:/bin:/app/.texlive/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin

I fished around in https://github.com/kannumehta/heroku-buildpack-tex
a bit, and it looks like it depends on the multi-buildpack build pack,
but the BUILDPACK_URL looks like it's referring to the tex build pack
directly, rather than composing it with the ruby build pack.

You may want to do as the heroku-buildpack-tex README recommends and
fill in the tex buildpack url and the ruby buildpack in .buildpacks,
achieving the following results inside of "$ heroku run bash":

$ heroku run bash -a myapp

$ printenv BUILDPACK_URL
https://github.com/ddollar/heroku-buildpack-multi.git

$ cat .buildpacks
https://github.com/kannumehta/heroku-buildpack-tex.git
https://github.com/heroku/heroku-buildpack-ruby

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to