Ishu
Ishu

Reputation: 648

bundle command not found heroku

I am trying to use ruby 1.8.7 in my heroku application but the application does not launch. Heroku shows following errors in the console:

2012-10-30T13:29:08+00:00 app[web.2]: bash: bundle: command not found

heroku run "bundle --version" also returns in command not found:

heroku run "bundle --version"
Running `bundle --version` attached to terminal... up, run.1
bash: bundle: command not found

Any ideas on what might be issue here ?

Upvotes: 0

Views: 3734

Answers (3)

riley
riley

Reputation: 2467

You need to have the supported Ruby buildpack set: heroku buildpacks:set heroku/ruby

Upvotes: 0

JediMindBang
JediMindBang

Reputation: 21

The code will look like this with the newest version:

heroku config:add GEM_PATH=vendor/bundle/1.8

Upvotes: 2

Vikko
Vikko

Reputation: 1406

Have you installed a new ruby version? Good chance that ruby version doesnt have bundler installed, use

heroku run 'gem install bundler'

after installing a new ruby!

Upvotes: 0

Related Questions