Installing Brahin with Dokku

For detailed guides about setting up Dokku see: Getting Started with Dokku and Deploying an application.

As a shortcut, you can follow the following:

Install Dokku

On the server:

apt-get install dokku

dokku plugin:install https://github.com/dokku/dokku-redis.git

dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git

Create application

On the server:

dokku apps:create brahin-app

dokku redis:create brahin-redis

dokku redis:link brahin-redis brahin-app

Deploy application

On you local machine:

git clone https://github.com/bagilevi/brahin-backend && cd brahin-backend

git remote add dokku dokku@example.com:brahin-app

git push dokku master

Setting up a domain

dokku domains:add brahin-appexample.com

Remove auto-generated domain name:

dokku domains brahin-app

dokku domains:remove brahin-appbrahin-app.dokku.myserver.com

Let's Encrypt certificate

dokku config:set --no-restart brahin-app DOKKU_LETSENCRYPT_EMAIL=me@example.com

dokku letsencrypt brahin-app