windows heroku run rake db:migrate error “/usr/bin/env: ruby.exe: No such file or directory”

后端 未结 5 597
清歌不尽
清歌不尽 2020-11-27 21:18

I\'m pretty new to Rails here and I\'ve followed Ruby on Rails Tutorial for most of it. I have since decided to make my own application, but using the Rails 4 gem in beta. I

5条回答
  •  一生所求
    2020-11-27 21:57

    You need to change in your application first line of the 3 files:

    bin/bundle
    bin/rails
    bin/rake
    

    Instead

    #!/usr/bin/env ruby.exe
    

    must be

    #!/usr/bin/env ruby
    

    That's why is error:

    /usr/bin/env: ruby.exe: No such file or directory
    

    Then you do successfully:

    heroku run rake db:migrate
    

    It's work for me.

提交回复
热议问题