Answer the question
In order to leave comments, you need to log in
What could be the reason for the /usr/bin/env: ruby2.2: No such file or directory” error when deploying to Heroku?
Greetings!
I understand the tutorial on rails.
Under vagrant, ubuntu server with ruby 2.2.0 works. I deployed to Heroku, but the application did not work on it. I found an error in the logs /usr/bin/env: ruby2.2: No such file or directory
.
Done rake rails:update:bin
and fixed a few bugs.
I tried to execute the command heroku run rails db:migrate
- it gives the same error.
What could be? Maybe someone has already encountered this?
Answer the question
In order to leave comments, you need to log in
Try in the files bin/rails , bin/bundle , bin/rake replace the first line with
and add the Ruby version to the Gemfileruby '2.2'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question