Slide 9
Slide 9 text
git push dokku master
• On git push, associated ssh key triggers a command configured in /home/
dokku/.sshcommand
• dokku binary implements git-receive-pack and writes code to /home/dokku/$APP
• /home/dokku/$APP/hooks/pre-receive contains code that triggers the build
process, and streams back output to stdout
• dokku/git-http-backend (OSS) provides http(s) support, writing the code to the
$APP directory, and chunks back output over http(s) to the client
• This bypasses ssh key check, authentication must be performed via basic-auth
or similar within a proxy in front of the git-http-backend.
• Only master branch is built, but this can be configured
• dokku git:set $APP deploy-branch $NEW_BRANCH