diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-02-19 10:18:10 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-02-19 10:18:10 +0000 |
commit | 17bc0ba1bca6783b76957f5769e2e9d96d0ee8e4 (patch) | |
tree | 15b933fee15118d276f22e6bd94f7b9ac941bea1 /config/deploy.rb | |
parent | 4218258787f0e9affd5f84baa078d9d32e8bae3d (diff) | |
parent | 95169c33db002c04a6a31a6a5db1ea59668f1292 (diff) |
Merge branch 'hotfix/0.16.0.7' into wdtk
Diffstat (limited to 'config/deploy.rb')
-rw-r--r-- | config/deploy.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 3a4f175b4..c73d16f53 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -17,14 +17,13 @@ set :rails_env, configuration['rails_env'] server configuration['server'], :app, :web, :db, :primary => true -namespace :rake do - namespace :themes do - task :install do - run "cd #{latest_release} && bundle exec rake themes:install RAILS_ENV=#{rails_env}" - end +namespace :themes do + task :install do + run "cd #{latest_release} && bundle exec rake themes:install RAILS_ENV=#{rails_env}" end end + # Not in the rake namespace because we're also specifying app-specific arguments here namespace :xapian do desc 'Rebuilds the Xapian index as per the ./scripts/rebuild-xapian-index script' @@ -71,8 +70,8 @@ namespace :deploy do end end -after 'deploy:update_code', 'deploy:symlink_configuration' -after 'deploy:update_code', 'rake:themes:install' +before 'deploy:assets:precompile', 'deploy:symlink_configuration' +before 'deploy:assets:precompile', 'themes:install' # Put up a maintenance notice if doing a migration which could take a while before 'deploy:migrate', 'deploy:web:disable' |