Search code examples
ruby-on-railsrubyserverrake

"rails s" command is not working


I am using Rails 4.2
On running command rails s or rails server
terminal says:

_rails_command:2: permission denied: bin/rails

but

bundle exec rails s

is working. Any idea why this is happening?


Solution

  • This command did the job:

    bundle exec spring binstub --all