You can configure almost everything using an app.json file.
For example for a static site that would be the following:
dokku apps:create dewey.at
dokku domains:set dewey.at dewey.at www.dewey.at
dokku letsencrypt:enable dewey.at
That's also one of my wishes to get improved, currently I just have a long text file where I store them so that if I move servers I can just re-run them if needed.Right now I keep the list of commands more as a reference to look up things like how I mounted a volume or my naming scheme for data directories.
Or just add `set -o errexit` at the top of the script. Or use make.