Dokku setup

Dokku is an open-source self-hosted PAAS tool which we will use to deploy our projects.

You can install the client by cloning the dokku repo:

git clone git@github.com:dokku/dokku.git ~/.dokku

Open your ~/.zshrc file with code ~/.zshrc and add these lines:

export DOKKU_HOST='devacademy.nz'
alias dokku='bash $HOME/.dokku/contrib/dokku_client.sh'

And then reload your ~/.zshrc file:

source ~/.zshrc

Did I do it right?

If you run this in your termimal: echo $DOKKU_HOST You should see devacademy.nz

If you run which dokku, you should see dokku: aliased to bash $HOME/.dokku/contrib/dokku_client.sh

Checking that you're authorised with the server

Run ssh dokku@devacademy.nz version and you should see something like dokku version 0.32.3

If you get something like Error: Permission denied (publickey), get in touch with your facilitator and make sure your public key is on the list.