Deployment to Dokku
On the server
Install dokku
Install the postgres plugin.
Install the letsencrypt plugin
Install the redis plugin
Create a postgis database
dokku postgres:create wazimap-db \
-i kartoza/postgis \
-p <database user password> \
-r <root password> \
-I 11.0-2.5 \
-C "POSTGRES_MULTIPLE_EXTENSIONS=postgis,pg_trgm;POSTGRES_USER=postgres;POSTGRES_PASS=<database user password>"Create a redis database
dokku redis:create wazimap-redisCreate a dokku app
dokku apps:create wazimapLink the postgres and redis databases to the app
dokku postgres:link wazimap-db wazimap
dokku redis:link wazimap-redis wazimapChange the database url to use postgis instead of postgres
Setup some environment variables
Setup the domain and SSL certificates
Setup the appropriate proxy ports:
Make sure that large uploads are allowed:
On your local machine
Add a git remote for deployment
git remote add dokku:wazimapDeploy
git push dokku staging:master(if deploying the staging branch)
Last updated
Was this helpful?