Permission denied in tmp

前端 未结 10 2275
情书的邮戳
情书的邮戳 2020-12-15 04:32

I just deployed a Rails 3 app with Ruby 1.9.2. I have been getting several errors.

  1. application.css wasn\'t compiled. so I set pre compilation in <
10条回答
  •  暖寄归人
    2020-12-15 05:01

    If the user:group running your web server is http:http and it's running on *nix, do this:

    sudo chown -R http:http /srv/www/appname/
    

    Also, silly question, but does /tmp/cache/assets exist?

    And, if so, as @leonel points out, you may also need to change the permissions:

    chmod 777 /srv/www/appname/tmp/cache
    

    Be careful setting 777 permissions on anything. Only do this to verify a permissions issue, then reset to the most minimal permissions necessary.

提交回复
热议问题