Permission Denied错误创建新的refinerycms应用程序

时间:2011-02-17 14:36:28

标签: ruby-on-rails indexing permission-denied refinerycms

在Windows计算机上创建新的refinerycms应用时,我在运行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文件夹中读取或写入这些索引有关。

1 个答案:

答案 0 :(得分:0)

Windows似乎不支持File#flock,不调用此方法可以防止出现错误,但会失去Windows平台锁定的安全性。