heroku run rake db:migrate error “/usr/bin/env: ruby2.2: No such file or directory” heroku run rake db:migrate error “/usr/bin/env: ruby2.2: No such file or directory” heroku heroku

heroku run rake db:migrate error “/usr/bin/env: ruby2.2: No such file or directory”


the solution that worked for me is that for every file in the bin directory of my project, i changed the first line from:

#!/usr/bin/env ruby2.2

to

#!/usr/bin/env ruby