Closed shaicoleman closed 11 years ago
This is a really strange error that I've never seen before. Does it work normally if you run mkdir -p tmp/cache/assets
first?
It deletes the tmp/cache/assets directory if it exists, and thus fails regardless if the directory exists or not.
I'm seeing something that I think is related. It seems whenever the asset compilation kicks off, the directories in my tmp dir get un-symlinked and made into real directories. The impact for me is that my socket is missing because it is at tmp/sockets/sockets/unicorn.rb instead of tmp/sockets/unicorn.rb
I'll dig in a little more and report back.
My guess is it's this line in turbo-sprockets/tasks/assets.rake:
119 task :clean => ['tmp:create', "assets:environment"] do
And as soon as I find tmp:create, I'm guessing it blows away tmp/ before creating...
Bingo.
https://github.com/rails/rails/blob/master/railties/lib/rails/tasks/tmp.rake
It's clearing everything and re-creating. I'll work on a patch.
@shaicoleman, I've just pushed version 0.1.16
with @ryana's patch. Please test it out and let me know if it solves your problem too! Thanks
Works for me now.
I'm getting the following error with 0.1.15: