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

后端 未结 5 596
清歌不尽
清歌不尽 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:58

    bin/bundle
    bin/rails
    bin/rake
    

    Instead

    #!/usr/bin/env ruby.exe
    

    must be

    #!/usr/bin/env ruby
    

    (thanks to previous post)

    make sure there are no references to windows in the gemfile.lock - they can just be deleted

    then

    git push heroku master
    

    if there are still problems use

    heroku logs (copying text to a text editor makes it easier to cut and paste for solutions)

提交回复
热议问题