Reputation: 790
Env: Ruby 2.6.3 / Rails 6.0 / Capistrano 3.14.1
Problem:
cap production deploy
is very slow, almost 10 minutes. The log shows $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
takes about 8 minutes. I use the same comand and run it locally, it's very quick. So what is the problem and how to reslove it.
Upvotes: 3
Views: 1155
Reputation: 790
The problem is the server performance limit & the solution is https://github.com/stve/capistrano-local-precompile if anyone is interested. It works well for me, which reduce the time to ~20 seconds.
Upvotes: 2