5
我用rmagick安裝了carrierwave gem。Rails 3 + carrierwave + nginx =權限被拒絕
我可以得到它工作正常,如果加載thro WEBrick但獲得500內部服務器錯誤時嘗試使用nginx代替。
nginx的error.log中說:
2011/08/14 10:06:40 [crit] 760#0: *4247 open() "/usr/local/Cellar/nginx/1.0.4/client_body_temp/0000000033" failed (13: Permission denied), client: 127.0.0.1, server: jewellery.dev, request: "POST /items/28?locale=en HTTP/1.1", host: "jewellery.dev:8080", referrer: "http://jewellery.dev:8080/items/28/edit?locale=en"
而且我已經創建的文件夾初始化包含文件:
CarrierWave.configure do |config|
config.permissions = 0777
end
我缺少的東西?
沒錯。謝謝Maurício!你救了我兩次指望這個!剛剛做了'chown: /usr/local/Cellar/nginx/1.0.4/client_body_temp/'它工作! :) –
在較新版本的nginx中,文件夾可能是**/var/lib/nginx/body ** – Clark