capistrano-plugins / capistrano-faster-assets

Skips asset compilation if none of the assets were changed since last release.
MIT License
186 stars 38 forks source link

Precompiling assets locally #8

Open vfonic opened 9 years ago

vfonic commented 9 years ago

Hi,

I've been using a custom script to precompile assets locally and just now switched to using this gem. This gem works great, but wouldn't it be faster and reduce server load to precompile the assets locally (if needed) and copy them over to server?

Here's the link to the capistrano task that I was using before: https://github.com/TalkingQuickly/capistrano-3-rails-template/blob/master/lib/capistrano/tasks/compile_assets_locally.cap

It didn't check if compilation is required, but I think these two ideas/scripts can be merged.

rhomeister commented 9 years ago

Hi Viktor,

This very much depends on the speed of the internet connection and the size of the assets. In my case, copying assets to 12 servers from my local computer would be very much slower than compiling them on each of the 12 servers individually. However, I do appreciate your comment and the fact that you're willing to help improve this gem. Any further suggestions are very much appreciated.

Ruben

On 10 June 2015 at 02:42, Viktor Fonic notifications@github.com wrote:

Hi,

I've been using a custom script to precompile assets locally and just now switched to using this gem. This gem works great, but wouldn't it be faster and reduce server load to precompile the assets locally (if needed) and copy them over to server?

Here's the link to the capistrano task that I was using before:

https://github.com/TalkingQuickly/capistrano-3-rails-template/blob/master/lib/capistrano/tasks/compile_assets_locally.cap

It didn't check if compilation is required, but I think these two ideas/scripts can be merged.

— Reply to this email directly or view it on GitHub https://github.com/capistrano-plugins/capistrano-faster-assets/issues/8.