2012-02-20 capistranoでsudo時に「sorry, you must have a tty to run sudo」と出た時の対処 よく忘れるのでメモdeploy.rbへ default_run_options[:pty]= true を追加 アメブロに書いてたのを転載です。