On 3 April 2012 02:17, tim <[email protected]> wrote:
> Hey guys.
>
> I am going to bump this post in the hopes that somebody else has run into
> this problem.
>
> In a nutshell rake:precompile hangs on the production server but works fine
> on the local machine. Looking at the log file I can see that it has compiled
> all the assets twice and then has hung for some reason.
>
> Any clues? I am not doing anything crazy or special.

If the server is Linux-based, `strace` is great for figuring out
what's going on with a "stuck" process.

$ strace -e file rake assets:precompile
... runs `rake assets:precompile`, printing out any time a file is
opened or checked

$ strace -e file,network,process rake assets:precompile
... the same as above, but also printing network process and subcommands run

$ strace -e file,process -f rake assets:precompile
... the -f parameter follows forks -- in case it's not `rake` but a
subshell that you're interested in

$ strace -p 1234
... connect to pid 1234 and start tracing


Solaris has `truss`, which provides similar capabilities but it uses
different parameters.


I hope that gives you a clue to what's going on!

-- 
Rob Hunter (@rjhunter)
Just Some Guy, ThoughtWorks

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to