Dokku deploy docs

1. Log in to the server

I want to deploy the app bravekids and first I log in to the server to the user dev. ****

# localhost
ssh [email protected]

If you are asked for a password then you need to be added as an authorized user first. Ask Marek for more details.

✈️ 2. Create the application

My app name is bravekids. I want to create a staging server for my app.

# [email protected]
dokku apps:create **bravekids**

<aside> ✅ Check your all apps with the command: dokku apps:list and dokku apps:report

</aside>

🔗 3. Create the backing services

For dokku, you can add backing services with plugins. https://dokku.com/docs/community/plugins/#official-plugins-beta

Probably you already have installed plugins, and now you can create services.

📊 3.1 Create a PostgreSQL service

  1. Create a Postgres service with the name for your database
# [email protected] 
dokku postgres:create **bravekids**
  1. Set DATABASE_URL env variable by linking the service
# [email protected]
# dokku postgres:link <database_name> <app_name>
****dokku postgres:link **bravekids** **bravekids**

<aside> ✅ Check ready databases: dokku postgres:list

</aside>

<aside> ✅ Check DATABASE_URL in app config: dokku config:show bravekids

</aside>