Permalink
Browse files

only migrate and precompile on changes

  • Loading branch information...
1 parent c5ba7f5 commit 4c53c97bf32a60f57cda0a48937c45a63ebff498 @Arie committed Mar 25, 2016
Showing with 10 additions and 0 deletions.
  1. +1 −0 Capfile
  2. +1 −0 Gemfile
  3. +3 −0 Gemfile.lock
  4. +5 −0 config/deploy.rb
View
@@ -9,6 +9,7 @@ require 'capistrano/maintenance'
require 'capistrano/rvm'
require 'capistrano/bundler'
require 'capistrano/rails'
+require 'capistrano/faster_assets'
require 'capistrano/puma'
require 'capistrano/sidekiq'
View
@@ -69,6 +69,7 @@ group :development do
gem 'capistrano-rvm'
gem 'capistrano-bundler'
gem 'capistrano-rails'
+ gem 'capistrano-faster-assets'
gem 'capistrano3-puma'
end
View
@@ -84,6 +84,8 @@ GEM
sshkit (~> 1.2)
capistrano-ext (1.2.1)
capistrano (>= 1.0.0)
+ capistrano-faster-assets (1.0.2)
+ capistrano (>= 3.1)
capistrano-maintenance (1.0.0)
capistrano (>= 3.0)
capistrano-rails (1.1.6)
@@ -477,6 +479,7 @@ DEPENDENCIES
capistrano
capistrano-bundler
capistrano-ext
+ capistrano-faster-assets
capistrano-maintenance
capistrano-rails
capistrano-rvm
View
@@ -10,9 +10,14 @@
set :user, 'tf2'
set :rvm_ruby_string, '2.3.0'
set :rvm_type, :system
+
set :maintenance_template_path, 'app/views/pages/maintenance.html.erb'
+
+#Rails
set :rails_env, "production"
+set :conditionally_migrate, true
+#Puma
set :puma_conf, "#{release_path}/config/puma/production.rb"
set :puma_state, "#{shared_path}/tmp/pids/puma.state"
set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"

0 comments on commit 4c53c97

Please sign in to comment.