在 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 文件夹中读取或写入这些索引有关。