To get WP up and running you have to prepare several things. This guide is based on a Dokku installation on a DigitalOcean Dropplet; for me the most convenient way to get a Dokku platform running.
Prepare your dokku environment
To make sure everything is on place, you should prepare your dokku environment.
1. Add your app
Create a app with the dokku apps:create <appname> where appname is the sub domain of your dokku server.
2. Add a Database
I’ll use the official mariadb plugin for firing up a mysql database.
First add a new database by executing the following command dokku mariadb:create .
Choose whatever you want for the databasename.
After firing the command, you should see a output like this:
dokku@myserver:~# dokku mariadb:create my_wp_database
-----> Starting container
Waiting for container to be ready
=====> MariaDB container created: my_wp_database
Please note the line
we will need this information later to configure the WordPress database!
Now connect your database to your app. This step makes sure your app has access to the db.
dokku mariadb:link my_wp_database yourappname