Permalink
Browse files

revert asset compilation change. just not worth it.

  • Loading branch information...
1 parent 43152ab commit b61ed9429d8dea558c9f4b42b2b6559692d0f066 @sdnall sdnall committed Mar 13, 2012
Showing with 3 additions and 9 deletions.
  1. +3 −9 config/deploy.rb
View
12 config/deploy.rb
@@ -85,13 +85,7 @@
desc "clean out the assets and recompile"
task :assets, :role => :app do
- from = source.next_revision(current_revision)
- if capture("cd #{latest_release} && #{source.local.log(from)} public/assets/ vendor/assets/ app/assets/ | wc -l").to_i > 0
- run "cd #{latest_release} && #{rake} RAILS_ENV=production assets:clean"
- run "cd #{latest_release} && #{rake} RAILS_ENV=production assets:precompile"
- else
- logger.info "Skipping asset pre-compilation because there were no asset changes"
- end
+ run "cd #{release_path}; RAILS_ENV=production rake assets:precompile"
end
desc "Link up various configs (valid after an update code invocation)"
@@ -100,14 +94,14 @@
rm -rf #{release_path}/config/database.yml #{release_path}/index &&
rm -rf #{release_path}/public/robots.txt &&
rm -rf #{release_path}/config/settings.local.yml &&
+ rm -rf #{shared_path}/cache/* &&
rm -rf #{release_path}/tmp/temp &&
rm -rf #{release_path}/tmp/associations &&
rm -rf #{release_path}/tmp/nonces &&
rm -rf #{release_path}/public/uploads &&
ln -nfs #{shared_path}/uploads #{release_path}/public/uploads &&
ln -nfs #{shared_path}/nonces #{release_path}/tmp/nonces &&
ln -nfs #{shared_path}/temp #{release_path}/tmp/temp &&
- ln -nfs #{shared_path}/assets #{release_path}/public/assets &&
ln -nfs #{shared_path}/associations #{release_path}/tmp/associations &&
ln -nfs #{shared_path}/cache #{release_path}/tmp/cache &&
ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml &&
@@ -205,4 +199,4 @@ def setup_roles
# deploy_servers.yml file is in the future?
def server_settings
@server_settings ||= YAML.load_file('config/deploy_servers.yml')[ENV['SERVER']]
- end
+ end

0 comments on commit b61ed94

Please sign in to comment.