Capistrano SSH::AuthenticationFailed, not prompting for password

Figured it out! Apparently this issue was with net-ssh gem. I had version 2.8.0 installed recently with some updates to my development environment and was the cause. I’m not sure why it was failing, but gem uninstall net-ssh -v 2.8.0< fixed it for me. If anyone actually knows why this was an issue or how … Read more

Deny access to .svn folders on Apache

The best option is to use Apache configuration. Using htaccess or global configuration depends mainly on if you control your server. If you do, you can use something like <DirectoryMatch .*\.svn/.*> Deny From All </DirectoryMatch> If you don’t, you can do something similar in .htaccess files with FilesMatch

How to deploy to a single specific server using Capistrano

I ended up posting a question on the capistrano users list here, and got the following response from Jamis (edited a bit by me here for clarity): Try the HOSTS environment variable: cap HOSTS=app2.example.com production deploy Note that doing this will treat app2 as being in every role, not just whichever role(s) it happens to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)