Reactivate local asset stuff for deployment

This commit is contained in:
2015-05-26 16:48:31 +02:00
parent ec03e8cf4b
commit be3f5e6f8b
+3 -3
View File
@@ -93,8 +93,8 @@ namespace :deploy do
on roles(fetch(:assets_roles)) do
run_locally do
with rails_env: fetch(:rails_env) do
#execute 'bin/rake assets:precompile'
#execute 'bin/rake dedigest_assets'
execute 'bin/rake assets:precompile'
execute 'bin/rake dedigest_assets'
end
end
@@ -107,7 +107,7 @@ namespace :deploy do
run_locally { execute "rsync -av --delete ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
execute :chown, "-R www-data:www-data", shared_path.join('public/assets/')
#run_locally { execute 'rm -rf public/assets' }
run_locally { execute 'rm -rf public/assets' }
end
end