Just as it says, I can\'t get capistrano 3 to do assets:precompile
correctly. Even after hours, it still says writing to the .css
file on the serv
Is this a Windows instance? Windows instances by default use the IE6 Javascript/CSS engine which is PATHETICALLY SLOW and accurately reflects the problem that you are facing.
If it is a Linux instance, try adding the uglifier
and therubyracer
gems in your Gemfile, and also make sure to install Firefox/libv8
I had a similar issue where Capistrano 3 freezes on assets:precompile.
For me it turned out that it was an SSH problem due to the prolonged time it takes to precompile assets on production! Especially if the server memory and CPU specs are not too high.
Although my connection to the production server was pretty fast and reliable, it seemed that my SSH client just gave up reading output from SSHD server after a certain amount of time.
Add the following in /etc/ssh/sshd_config
on production server to keep connection with SSH client alive:
ClientAliveInterval 30
ClientAliveCountMax 10
This fixed the issue and now Capistrano 3 completes deployment with no problems.