S
S
sshkarupa2015-03-05 17:51:48
Ruby on Rails
sshkarupa, 2015-03-05 17:51:48

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:binand 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

2 answer(s)
M
Maxim, 2015-03-06
@1kachan

mb worth some rvm?

A
Andrey Andreev, 2015-03-06
@b0nn1e

Try in the files bin/rails , bin/bundle , bin/rake replace the first line with
and add the Ruby version to the Gemfile
ruby '2.2'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question