Commit 71b4770913900d13d5335954dfcde09f4a3c210c
1 parent
1274c0dc
Exists in
master
and in
1 other branch
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 | 9 | config = YAML.load_file('config/config.yml')['deployment'] || {} |
10 | 10 | |
11 | 11 | require 'bundler/capistrano' |
12 | +load 'deploy/assets' | |
12 | 13 | |
13 | 14 | set :application, "errbit" |
14 | 15 | set :repository, config['repository'] |
... | ... | @@ -38,7 +39,6 @@ set(:current_branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't d |
38 | 39 | set :branch, defer { current_branch } |
39 | 40 | |
40 | 41 | after 'deploy:update_code', 'errbit:symlink_configs' |
41 | -before "deploy:create_symlink", "assets:compile" | |
42 | 42 | |
43 | 43 | namespace :deploy do |
44 | 44 | task :start do ; end |
... | ... | @@ -65,16 +65,6 @@ namespace :errbit do |
65 | 65 | end |
66 | 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 | 68 | namespace :db do |
79 | 69 | desc "Create the indexes defined on your mongoid models" |
80 | 70 | task :create_mongoid_indexes do | ... | ... |