After much change, I just decided to close textmate and delete the tmp
folder. After that, everything works as expected...
Rails precompile trying to reference tmp file
-
12-10-2022 - |
Frage
I'm trying to precompile my assets and Rails keeps throwing an error about missing a .lock
file in the tmp
directory:
rake aborted!
No such file or directory - /.../My-App/tmp/cache/assets/sprockets%2Ffa8030279a511d669a1c26925f5bb97520130214-20129-dtn8tg.lock
The error shows up when I add the line
config.assets.initialize_on_precompile = false
to my application.rb
file, as per the instructions on Heroku. I've tried running rake assets:clean
, which seems to run fine but doesn't solve the problem.
Any idea why it's referencing a .lock
file in the tmp
directory?
Lösung
Andere Tipps
For the tmp and .lock it's by design of the file_store.
As suggested here, check the in-memory implementation.
Can you try
config.assets.cache_store = :memory
. If that works, its a bug with Rails'FileStore
.
Are you on windows ? Probably the path /.../
is too long ?
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow