After initial azk deploy, subsequent deploys ask for password from git
patrickleet opened this issue · 9 comments
➜ elite git:(master) azk deploy
git@111.111.11.111's password:
From googling around it looks like the remote server needs access to git, which is a private repository.
Seems like it could be something like using SSH Agent Forwarding? https://developer.github.com/guides/using-ssh-agent-forwarding/
@patrickleet are you deploying to a DigitalOcean droplet or for some other box?
@fearenales it's a digital ocean droplet
deploy: {
image: {"docker": "azukiapp/deploy-digitalocean"},
mounts: {
"/azk/deploy/src" : path("."),
"/azk/deploy/.ssh": path("#{env.HOME}/.ssh"),
"/azk/deploy/.config": persistent("deploy-config"),
},
scalable: {"default": 0, "limit": 0},
}
OK, and you have properly configured SSH keys at ~/.ssh
, right?
yes - I deleted the deployment, and am trying again now
This seems to have been caused by having my application in a sub directory of the git repository.
./repo/app/
I moved everything to the root, and am no longer getting this error.
@patrickleet that's odd... But thank you for your feedback, I'll investigate it further.
Could have been a fluke, I'm in trying to deploy to a US server from South Africa and my internet is quite slow :/
The easiest way to fix that as far as I could tell was to do:
azk deploy clear-cache
after that:
azk deploy