2

I have a problem with capistrano and sudo prompt password. When I run cap deploy it asks me for sudo password but I type it and hit enter but it seems that it is still waiting for more input. How can I tell that I'm finished typing?

Adrian Serafin
  • 7,665
  • 5
  • 46
  • 67

2 Answers2

4

Deployment process asks password not from you, but from executing process at your remote server so you can't access remote prompt. I have this problem once. Some solutions:

  • (Bad). Use sudo_password in your deploy.rb
  • (Good). Setup right and permissions to not to use sudo access at all.

Second advice much better :)

Sergey Gerasimov
  • 2,035
  • 2
  • 14
  • 12
2

Did you try this in deploy.rb?

default_run_options[:pty] = true
untidyhair
  • 3,292
  • 1
  • 13
  • 7