Commit 71b4770913900d13d5335954dfcde09f4a3c210c

Authored by Nathan Broadbent
1 parent 1274c0dc
Exists in master and in 1 other branch production

Use capistrano's built-in recipe for precompiling assets

Showing 1 changed file with 1 additions and 11 deletions   Show diff stats
config/deploy.example.rb
@@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
9 config = YAML.load_file('config/config.yml')['deployment'] || {} 9 config = YAML.load_file('config/config.yml')['deployment'] || {}
10 10
11 require 'bundler/capistrano' 11 require 'bundler/capistrano'
  12 +load 'deploy/assets'
12 13
13 set :application, "errbit" 14 set :application, "errbit"
14 set :repository, config['repository'] 15 set :repository, config['repository']
@@ -38,7 +39,6 @@ set(:current_branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't d @@ -38,7 +39,6 @@ set(:current_branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't d
38 set :branch, defer { current_branch } 39 set :branch, defer { current_branch }
39 40
40 after 'deploy:update_code', 'errbit:symlink_configs' 41 after 'deploy:update_code', 'errbit:symlink_configs'
41 -before "deploy:create_symlink", "assets:compile"  
42 42
43 namespace :deploy do 43 namespace :deploy do
44 task :start do ; end 44 task :start do ; end
@@ -65,16 +65,6 @@ namespace :errbit do @@ -65,16 +65,6 @@ namespace :errbit do
65 end 65 end
66 end 66 end
67 67
68 -namespace :assets do  
69 - desc <<-DESC  
70 - Compile assets.  
71 - DESC  
72 - task :compile, :roles => :app do  
73 - run "cd #{latest_release} && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"  
74 - end  
75 -  
76 -end  
77 -  
78 namespace :db do 68 namespace :db do
79 desc "Create the indexes defined on your mongoid models" 69 desc "Create the indexes defined on your mongoid models"
80 task :create_mongoid_indexes do 70 task :create_mongoid_indexes do