]> cat aescling's git repositories - mastodon.git/commitdiff
Speed up capistrano deployments
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 16 Feb 2017 01:34:21 +0000 (02:34 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 16 Feb 2017 01:34:21 +0000 (02:34 +0100)
Capfile
Gemfile
Gemfile.lock

diff --git a/Capfile b/Capfile
index 4a3b6d6752255997a14b1618e379eb822f88f43b..5bbf6933bd1ca22a8a1605b645ae0b63973127f1 100644 (file)
--- a/Capfile
+++ b/Capfile
@@ -8,6 +8,7 @@ require 'capistrano/rbenv'
 require 'capistrano/bundler'
 require 'capistrano/yarn'
 require 'capistrano/rails/assets'
+require 'capistrano/faster_assets'
 require 'capistrano/rails/migrations'
 
 Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
diff --git a/Gemfile b/Gemfile
index 423560bb6d046921298da9a46b23f573f790d186..55c1de69309b15c628164ac5fba497cc8ab7adef 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -82,6 +82,7 @@ group :development do
   gem 'capistrano-rails'
   gem 'capistrano-rbenv'
   gem 'capistrano-yarn'
+  gem 'capistrano-faster-assets', '~> 1.0'
 end
 
 group :production do
index 4f54a621ca1509dfc1357d1a3b621f87c2821179..f50edaf95684170b77e5d5bc95fe8594ddd2cfad 100644 (file)
@@ -89,6 +89,8 @@ GEM
     capistrano-bundler (1.2.0)
       capistrano (~> 3.1)
       sshkit (~> 1.2)
+    capistrano-faster-assets (1.0.2)
+      capistrano (>= 3.1)
     capistrano-harrow (0.5.3)
     capistrano-rails (1.2.2)
       capistrano (~> 3.1)
@@ -454,6 +456,7 @@ DEPENDENCIES
   browserify-rails
   bullet
   capistrano
+  capistrano-faster-assets (~> 1.0)
   capistrano-rails
   capistrano-rbenv
   capistrano-yarn