LoginSignup
1
1

More than 5 years have passed since last update.

Capistrano で cap deploy:setup がエラー

Posted at

deploy:setup を実行すると sudo しているところで、以下のエラーがでることがある。

sorry, you must have a tty to run sudo

この場合、Capfile に以下の記述を追加することで防げる。

Capfile
default_run_options[:pty] = true

sudoers をいじる手もあるようだけど、Capistrano で解決できるのであれば、これがよいのかな〜

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1