在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文件夹中读取或写入这些索引有关。
答案 0 :(得分:0)
Windows似乎不支持File#flock,不调用此方法可以防止出现错误,但会失去Windows平台锁定的安全性。