{"action":"created","issue":{"url":"https://api.github.com/repos/Mixd/wp-deploy/issues/116","repository_url":"https://api.github.com/repos/Mixd/wp-deploy","labels_url":"https://api.github.com/repos/Mixd/wp-deploy/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/Mixd/wp-deploy/issues/116/comments","events_url":"https://api.github.com/repos/Mixd/wp-deploy/issues/116/events","html_url":"https://github.com/Mixd/wp-deploy/issues/116","id":159970261,"number":116,"title":"pulling db from staging - issues running 'wp' locally","user":{"login":"rfair404","id":714350,"avatar_url":"https://avatars.githubusercontent.com/u/714350?v=3","gravatar_id":"","url":"https://api.github.com/users/rfair404","html_url":"https://github.com/rfair404","followers_url":"https://api.github.com/users/rfair404/followers","following_url":"https://api.github.com/users/rfair404/following{/other_user}","gists_url":"https://api.github.com/users/rfair404/gists{/gist_id}","starred_url":"https://api.github.com/users/rfair404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfair404/subscriptions","organizations_url":"https://api.github.com/users/rfair404/orgs","repos_url":"https://api.github.com/users/rfair404/repos","events_url":"https://api.github.com/users/rfair404/events{/privacy}","received_events_url":"https://api.github.com/users/rfair404/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-13T14:55:53Z","updated_at":"2016-06-13T22:12:33Z","closed_at":null,"body":"I have successfully set up wp-deploy as far as I can tell. I'm able to deploy to both remote environments. \r\n\r\nRecently I have tried to do 'bundle exec cap staging db:pull' to pull my staging environment database into my local environment. \r\n\r\nI have wp-cli installed on my server, and locally. the error seems to be related to the fact that SSH.config.command_map[:wp] is specifying the \"staging\" path to wp-cli not the local path to wp-cli.\r\n\r\nproducing this error: \r\n```\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing as friendsschoolatb@67.227.201.200: No such file or directory - /home/friendsschoolatb/bin/wp-cli.phar\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:16:in `rescue in block (2 levels) in execute'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'\r\nErrno::ENOENT: No such file or directory - /home/friendsschoolatb/bin/wp-cli.phar\r\n/usr/local/Cellar/ruby/2.2.4/lib/ruby/2.2.0/open3.rb:193:in `spawn'\r\n/usr/local/Cellar/ruby/2.2.4/lib/ruby/2.2.0/open3.rb:193:in `popen_run'\r\n/usr/local/Cellar/ruby/2.2.4/lib/ruby/2.2.0/open3.rb:93:in `popen3'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/local.rb:63:in `block in _execute'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/local.rb:58:in `tap'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/local.rb:58:in `_execute'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/local.rb:27:in `execute'\r\n/Users/russell/vagrants/varying-vagrant-vagrants/www/fsa/new_htdocs/lib/capistrano/tasks/db.cap:94:in `block (4 levels) in <top (required)>'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/local.rb:15:in `instance_exec'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/local.rb:15:in `run'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:59:in `run_locally'\r\n/Users/russell/vagrants/varying-vagrant-vagrants/www/fsa/new_htdocs/lib/capistrano/tasks/db.cap:93:in `block (3 levels) in <top (required)>'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:54:in `instance_exec'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/backends/netssh.rb:54:in `run'\r\n/usr/local/lib/ruby/gems/2.2.0/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:13:in `block (2 levels) in execute'\r\nTasks: TOP => db:pull\r\n```\r\n\r\nAny suggestions for how to make the \"run_locally\" block in lib/capistrano/tasks/db.cap lines 93 & 94 honor the local configurations? \r\n\r\nI created a \"local.rb\" inside of config/deploy and setting the SSH config "},"comment":{"url":"https://api.github.com/repos/Mixd/wp-deploy/issues/comments/225724538","html_url":"https://github.com/Mixd/wp-deploy/issues/116#issuecomment-225724538","issue_url":"https://api.github.com/repos/Mixd/wp-deploy/issues/116","id":225724538,"user":{"login":"rfair404","id":714350,"avatar_url":"https://avatars.githubusercontent.com/u/714350?v=3","gravatar_id":"","url":"https://api.github.com/users/rfair404","html_url":"https://github.com/rfair404","followers_url":"https://api.github.com/users/rfair404/followers","following_url":"https://api.github.com/users/rfair404/following{/other_user}","gists_url":"https://api.github.com/users/rfair404/gists{/gist_id}","starred_url":"https://api.github.com/users/rfair404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfair404/subscriptions","organizations_url":"https://api.github.com/users/rfair404/orgs","repos_url":"https://api.github.com/users/rfair404/repos","events_url":"https://api.github.com/users/rfair404/events{/privacy}","received_events_url":"https://api.github.com/users/rfair404/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T22:12:33Z","updated_at":"2016-06-13T22:12:33Z","body":"~/bin/wp-cli.phar --info\r\nPHP binary:\t/usr/local/bin/php\r\nPHP version:\t5.5.30\r\nphp.ini used:\t/usr/local/lib/php.ini\r\nWP-CLI root dir:\tphar://wp-cli.phar\r\nWP-CLI packages dir:\t/home/friendsschoolatb/.wp-cli/packages/\r\nWP-CLI global config:\r\nWP-CLI project config:\r\nWP-CLI version:\t0.23.1"}}
{"actor":{"display_login":"rfair404"}}