Question

Lors de la création d'un nouveau Application RefineryCMS sur une machine Windows, je reçois une erreur "permission refusée" lors de l'exécution de rake db:migrate.Voir ci-dessous (une sortie tronquée)

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 utilise des actes_as_indexed et je pense que cette erreur d'autorisation a quelque chose à voir avec la lecture ou l'écriture de ces index dans le dossier TMP.

Était-ce utile?

La solution

It appears that Windows does not support File#flock, not calling on this prevents errors from appearing, though does lose the security of locking on the Windows platform.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top