heroku /usr/bin/env: ‘ruby.exe\r’: No such file or directory problem

前端 未结 1 1698
情话喂你
情话喂你 2021-01-16 05:12

So I have been deploying my app to the same heroku server for the past few weeks and it has been working great.

I just tried to deploy my latest code and got this e

相关标签:
1条回答
  • 2021-01-16 05:20

    I had the same issue here, running Rails 5 . Though I am not 100% sure, I believe it happened because of a problem with the line endings on the bin/ files.

    I altered the global seeting on Git, dealing with line endings:

    $ git config --global core.autocrlf true
    

    And then updated the bin files, with:

    rails app:update:bin
    

    (on previous rails versions it goes by rake rails:update:bin)

    More on how Git deals with this issue (and how to refresh a repository, if necessary) here: https://help.github.com/articles/dealing-with-line-endings/

    0 讨论(0)
提交回复
热议问题