0

I'm following Michael Hartl's tutorial on learning web development with rails. When it comes to migrating the database the command:

heroku run rake db:migrate

gives the following error

Running `rake db:migrate` attached to terminal... up, run.2675
/usr/bin/env: ruby1.9.1: No such file or directory

I'm using Ruby 1.9.3 and I have declared that in the Gemfile. I don't really understand what could be causing this error and any help at all would be greatly appreciated.

SoSimple
  • 701
  • 9
  • 30

1 Answers1

0

use this

 /usr/bin/env ruby

instead of

 /usr/bin/env ruby.exe

on following files of your app.

bin/bundle
bin/rails
bin/rake

and the exec

heroku run rake db:migrate
Dheer
  • 773
  • 1
  • 6
  • 16