Reputation: 51
I got some problem when i typing bundle exec rake db:migrate
on terminal
then i received the result like `/usr/bin/env: ‘ruby2.3’: No such file or directory
Upvotes: 5
Views: 7150
Reputation: 3753
For me, the problem was with a cached set of gems (on CircleCI 2.0). I changed my base image which changed the ruby location. If you tried to bundle install
with one ruby, removed it then switched to another, then this appears to cause the problem.
Upvotes: 1
Reputation: 21
I had the same problem but when running:
rails new my_application
but after reinstalling the rails gems by:
gem install rails
it worked just fine and I could run:
rails new my_application
bundle install
and
bundle exec rails s
without any problems.
Upvotes: 1