1

I'm using Heroku and cloud9.io for my app.

I get the Error:

bash: bundle: command not found

When i try run the command:

heroku run rake db:migrate

Localy my app works fine without any error but i'm not able to migrate and i get the Application on herokuapp.com path.

olivier
  • 2,585
  • 6
  • 34
  • 61

1 Answers1

0

Your problem may be due to the version of Ruby you are running.

I had a similar issue before, I tried everything possible(installing bundler, etc.), but one thing that worked for me was to manually set the config using following command:

heroku config:add GEM_PATH=vendor/bundle/1.8

Please note that you should change 1.8 to the version of Ruby you are currently running.

Tim
  • 1,326
  • 1
  • 15
  • 27
  • 1
    @olivier Hmm that is strange. I tell you one good thing to do is to get in touch with customer support at Heroku. Go to your dashboard at Heroku and click the "Feedback" button at the bottom. They should pinpoint the issue for you without trouble. If they help you, please post an additional answer below. I am curious as to what causes this failure for you. – Tim Jul 13 '15 at 14:19
  • Thank you. I did this but even the people from Heroku don't know an answer.. Seems like bundler isn't installed on heroku. This is the feedback i've got from cloud9 support.. – olivier Jul 13 '15 at 16:11