Rakefile quote path

This commit is contained in:
Jörg Thalheim 2013-02-18 22:45:00 +01:00
parent 37e48ce97b
commit dd92cd812e

View File

@ -18,7 +18,7 @@ task :deploy do
exclude = "--exclude-from '#{File.expand_path('./rsync-exclude')}'"
end
puts "## Deploying website via Rsync"
ok_failed system("rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}")
ok_failed system("rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{"--delete" unless rsync_delete == false} \"#{public_dir}/\" \"#{ssh_user}:#{document_root}\"")
end
desc "Generate website and deploy"