Initial setup
- Use digital ocean image with Dokku pre-installed, set up ssh key through web.
apt update
&&apt full-upgrade
to update packages.dokku apps:create myapp.somedomain.com
and addgit remote add dokku dokku@DOKKU_HOSTNAME:myapp.somedomain.com
- I used /etc/hosts to access the image from a hostname instead of IP.
- More detailed setup in the various deploy with dokku guides I was following.
Database
dokku plugin:install https://github.com/dokku/dokku-postgres.git
dokku postgres:create somedatabasename
dokku postgres:link somedatabasename myapp.somedomain.com
- Use
DATABASE_URL
from app
Configuring
dokku git:set --global deploy-branch production
dokku git:set myapp.somedomain.com deploy-branch staging
dokku config:set myapp.somedomain.com MY_ENV_VAR=value
dokku config:unset myapp.somedomain.com MY_ENV_VAR
Checking
dokku domains:report
lists domains used per appdokku apps:list
for a simple listdokku report myapp.somedomain.com
to get some detailed outputdocker ps --all
to see containers that have been runningdokku run myapp.subdomain.com 'whoami'
runs shell commands in a container
SSL
Configure with the LetsEncrypt plugin:
dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
dokku config:set --no-restart myapp.somedomain.com DOKKU_LETSENCRYPT_EMAIL=your@e.mail
dokku letsencrypt myapp.somedomain.com
dokku letsencrypt:cron-job --add
to set up auto-renewal
Good Morning!,
Sorry to bother you, but I wanted to ask a quick question. Is there room to improve when it comes to your website? I ask because most sites need edits, tweaks, content, logos, SEO, marketing, branding, etc. and that’s why I reached out to you.
My name is James and I go around the internet and test services and digital marketplaces to see if they’re legitimat. When I come across some great one, I let everyone know what I decided to stick with, and that’s exactly why I reached out to you today.
You can see my 2 big winners here: https://webvetted.com
Go through the sites, find some services you like, reach out to a few people if you want to push your website to be even better š
Thanks
– James
LikeLike