Blog · GitLab (User) Created at 2018-2-28 13:00:20 Updated at 2018-4-28 09:50:17 Tomáš Hübelbauer
Fix the order of commands when creating a new app


Dokku is a self-hosted alternative to Heroku that allows one to just git push dokku master like with Heroku and have apps up in seconds. It uses herokuish to simulate the Heroku build and deployment.



Running TypeScript applications on Dokku without any Procfiles can be achieved by running this in start:

tsc -p . && node src/index.js`

This will compile TypeScript to JavaScript (in the Dokku container only) and then run JavaScript.

It may be necessary to also run this once on the server:

dokku config:set --no-restart bloggo  DOKKU_DEFAULT_CHECKS_WAIT=60

This is so that TSC has time to build and Node to start, the default 10 seconds is very low for that.

Note: TypeScript needs to be in dependencies and not in devDependencies for this to work it appears.

Kill stuck deployment

Kill app stuck in deployment: rm /home/dokku/$app/.deploy.lock

Create a new app


dokku ps:restart <app>

View app logs

dokku logs $name



If asked for a password, do:

Version Check

dokku version


Changes (26)
2018-4-28 09:50:17 Tomáš Hübelbauer
Fix the order of commands when creating a new app
2018-4-25 19:58:04 Tomáš Hübelbauer
Move restarting to tips
2018-4-7 08:21:42 Tomáš Hübelbauer
Update the tip on creating a new app to include Let's Encrypt
2018-4-7 08:05:18 Tomáš Hübelbauer
Merge the two sections into one on how to create a new app
2018-3-21 21:07:50 Tomáš Hübelbauer
Add logs tip and split tips by headers
2018-3-18 20:56:44 Tomáš Hübelbauer
Add info on how to add Dokku Git remote
2018-3-18 20:53:42 Tomáš Hübelbauer
Add a tip on creating new apps
2018-3-15 16:25:19 Tomáš Hübelbauer
Add a tip to remove lock file for stuck deployment
2018-3-15 15:32:04 Tomáš Hübelbauer
Bookmark Flynn as an alternative to Dokku with high availability
2018-3-15 15:01:13 Tomáš Hübelbauer
Note that the database data survive the deployments
2018-3-15 10:18:32 Tomáš Hübelbauer
Document how to create a new non-default app with a DB and HTTPS
2018-3-14 12:47:26 Tomáš Hübelbauer
Plan checking out .NET Core with Dokku
2018-3-14 11:04:59 Tomáš Hübelbauer
Mention Herokuish
2018-3-14 10:17:46 Tomáš Hübelbauer
Warn about having to put TypeScript to dependencies as opposed to devDependencies
2018-3-14 10:03:33 Tomáš Hübelbauer
Add a tip for running TypeScript on Dokku
2018-3-13 22:04:07 Tomáš Hübelbauer
Link to the Let's Encrypt Dokku plugin issue
2018-3-13 21:42:31 Tomáš Hübelbauer
Add Dokku version check command
2018-3-4 20:46:00 Tomáš Hübelbauer
Note a command for restarting
2018-2-28 16:33:25 Tomáš Hübelbauer
Add information about using the Let's Encrypt plugin
2018-2-28 16:27:33 Tomáš Hübelbauer
Add information about managing keys
2018-2-28 16:25:29 Tomáš Hübelbauer
Finalize the basic Dokku setup doc
2018-2-28 14:10:39 Tomáš Hübelbauer
Document SSH keypair generation
2018-2-28 14:05:40 Tomáš Hübelbauer
Break instructions down some more
2018-2-28 13:55:55 Tomáš Hübelbauer
Add more notes on Dokku
2018-2-28 13:30:39 Tomáš Hübelbauer
Mention reinstalling the Ubuntu VPS on Wedos
2018-2-28 13:25:57 Tomáš Hübelbauer
Add basic instructions from the Dokku documentation
Comments E-mail me!