Permission denied in tmp

前端 未结 10 2287
情书的邮戳
情书的邮戳 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:16

    Now for those of us that are using windows - If you are an administrator and see this error

    ActionView::Template::Error (Permission denied @ utime_failed) C:/User/..../tmp/cache/assets/sprochets/v3.0/E5/E5PZx-mq8.cache
    

    Then it is Permission and Ownership setting issue on Windows. You can go to the tmp folder on your application and give yourself(User) permission to **Read, Write and Execute ** on the folder. Click [here][1] to view how to give permissions.

    Quick Fix. Open your terminal and run the following command as an administrator

        takeown /f  /r /d y
    

    Then Restart your server.

提交回复
热议问题