0

在 Windows 机器上创建新的refinerycms应用程序时,我在运行时收到“Permission Denied”错误rake db:migrate。见下文(一些输出被截断)

Setting up your development database..
Running: cmd /c cd "D:\NewInstantRails\InstantRails-2.0-win\rails_apps
\my-app" && D:\NewInstantRails\InstantRails-2.0-win\rubies\Ruby192\bin
\ruby -S  rake -f "D:\NewInstantRails\InstantRails-2.0-win\rails_apps\my-
app\Rakefile" db:migrate
rake aborted!
An error has occurred, all later migrations canceled:

Permission denied - D:/NewInstantRails/InstantRails-2.0-win/rails_apps/
my-app/tmp/index/development/Page/size
D:/NewInstantRails/InstantRails-2.0-win/rubies/Ruby192/lib/ruby/1.9.1/
pathname.r
b:776:in `read' 

RefineryCMS 使用acts_as_indexed,我认为这个权限错误与在tmp 文件夹中读取或写入这些索引有关。

4

1 回答 1

0

Windows 似乎不支持 File#flock,不调用它可以防止出现错误,尽管确实失去了在 Windows 平台上锁定的安全性。

于 2011-02-22T21:32:11.233 回答