[capistrano] dealing with multiple ssh keys and configuring ssh key in capfile

2012-08-21 Thread smartnut007
Playing around with Capistrano. I couldn't find any specific documentation on situations with multiple keys. Its good one is able to specify the username with the user@host syntax. But, i want to be able to do that for ssh keys too, at least at the cap file level. using .ssh/config to maps key

[capistrano] Re: Deploy not updating site

2012-08-21 Thread blueHandTalking
Donovan, Thank you very much for taking a look at this! I examined my nginx.conf much closer after your comments. Actually had a couple of errors there, and did arrange my location blocks just in case. Major mistake was my location blocks were not nested properly. Second error was in my deploy.

Re: [capistrano] Re: Deploy not updating site

2012-08-21 Thread Donovan Bray
Ignore my advice on order of location blocks; nginx has a specific order of precedence and order doesn't matter. See location description here: http://wiki.nginx.org/HttpCoreModule I would rewrite your asset location block like this: location ^~ /assets/ { # matches any query beginning with /a

Re: [capistrano] Re: Deploy not updating site

2012-08-21 Thread Donovan Bray
I would move your location that matches assets above the root location. As long as your root is specified at the server level you don't need to redefine the roots inside the location blocks. Take a look at: https://github.com/donnoman/cap-recipes/blob/master/lib/cap_recipes/tasks/nginx_unic