Tailing Dokku logs

Posted August 24th, 2016 by Philip Arndt

We host some applications using Dokku, largely because of the simplicity involved in being able to deploy using git push and its similarity to Heroku but in situations where it didn't make as much sense to just use Heroku.

There is a handy way to tail logs:

$ ssh dokku@hostname logs my_application --tail

Unfortunately, due to some bug with tty handling, the logs were being truncated which seemed weird. Luckily, in the corresponding Dokku issue that somebody else filed, the workaround was simple:

$ ssh -t dokku@hostname logs my_application --tail

It's nice when there's an easy solution for a problem.

It's even nicer when someone else has already solved it for you!