Rails: “Permission denied - /tmp/cache/assets/development/sprockets/…”?

前端 未结 3 2022
谎友^
谎友^ 2021-01-21 00:36

When I run a rails app and navigate with browser to them I get an error from rails:

Permission denied - /path/to/my_rails_app/tmp/cache/assets/devel         


        
3条回答
  •  情书的邮戳
    2021-01-21 00:58

    The user who created or 'owns" the my_rails_app directory isn't writable by the server.

    chown -R webserveruser:webserveruser /path/to/my_rails_app
    

    Change the webserveruser to http, or apache or whatever username is running your server. The entitiy to the right of the : is the group, use a group name that is writable by your user if you need write access without changing users.

提交回复
热议问题