Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompiling assets locally #8

Open
vfonic opened this issue Jun 10, 2015 · 1 comment
Open

Precompiling assets locally #8

vfonic opened this issue Jun 10, 2015 · 1 comment

Comments

@vfonic
Copy link

vfonic commented Jun 10, 2015

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
Copy link
Contributor

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 [email protected] 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
#8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants