Weird rails error “permission denied: bin/rails” for old rails apps

后端 未结 6 1529
执笔经年
执笔经年 2020-12-29 08:42

I\'m getting this error whenever I run rails (or any rails command) _rails_command:2: permission denied: bin/rails ONLY when i\'m inside some

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 08:59

    So what worked for me, anyone coming across this issue is to run

    bundle exec rake app:update:bin
    

    You'll be given a prompt asking if you want to overwrite? The options here are:

    • Y - yes (default one, just press Enter for it)
    • n - no (leave current file without changes)
    • a - all (apply all changes)
    • q - quit
    • d - diff
    • h - help

    I chose a and it seemed to work ok.

提交回复
热议问题