change deploy behaviour
This commit is contained in:
+4
-2
@@ -96,6 +96,7 @@ namespace :deploy do
|
||||
with rails_env: fetch(:rails_env) do
|
||||
execute 'bin/rake assets:precompile'
|
||||
execute 'bin/rake assets:dedigest'
|
||||
execute 'bin/rake assets:gzip'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -105,10 +106,11 @@ namespace :deploy do
|
||||
#end
|
||||
#end
|
||||
rsync_host = host
|
||||
run_locally { execute "rsync -av --delete ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
|
||||
#run_locally { execute "rsync -av --delete ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
|
||||
run_locally { execute "rsync -av ./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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user