Skip to content
Discussion options

You must be logged in to vote

The git commands run on the server, as remote_user. But Deployer turns on SSH agent forwarding by default, so the server-side git was logging in to Bitbucket with the key in your local agent and never touched the deploy key.

What deploy:update_code does

With the default update_code_strategy (archive), the task calls run(), which executes on the remote host. It creates a bare mirror in {{deploy_path}}/.dep/repo with git clone --mirror, then runs git remote update on later deploys:

$bare = parse('{{deploy_path}}/.dep/repo');
$env = [
'GIT_TERMINAL_PROMPT' => '0',
'GIT_SSH_COMMAND' => get('git_s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jamieburchell
Comment options

Answer selected by jamieburchell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants