Ruby on Rails: permission denied when using “rails generate controller welcome”

前端 未结 6 1360
Happy的楠姐
Happy的楠姐 2020-12-25 13:25

I used Ruby on Rails on Red Hat server. When I trying to generate a controller file, I got this error:

[ec2-user@ip-172-31-22-128 testApp4]$ rails generate          


        
6条回答
  •  既然无缘
    2020-12-25 14:11

    Or,

    export XDG_RUNTIME_DIR=/run/user/${id -u}
    

    to change this system variable. id -u returns your UID(user id), which is the dir name where you have access to write/read under /run/user/.

提交回复
热议问题