Skip to content

Instantly share code, notes, and snippets.

@sirodoht
Last active October 31, 2020 16:51
Show Gist options
  • Save sirodoht/ddf4a70be9b0e26effadef1dbeafa4e2 to your computer and use it in GitHub Desktop.
Save sirodoht/ddf4a70be9b0e26effadef1dbeafa4e2 to your computer and use it in GitHub Desktop.
Dokku config commands
# config with restart
dokku config:set mataroa SECRET_KEY=''
# config no restart
dokku config:set --no-restart mataroa EMAIL_HOST_USER=''
dokku config:set --no-restart mataroa EMAIL_HOST_PASSWORD=''
# run command
dokku run mataroa python manage.py createsuperuser --email zf@sirodoht.com --username sirodoht
# no debug mode
dokku config:set mataroa NODEBUG=1
# postgres backups in s3
dokku postgres:backup-auth mataroa-db $AWS_KEY_ID $AWS_KEY_SECRET
dokku postgres:backup mataroa-db mataroa/backups
dokku postgres:backup-schedule mataroa-db 0 6 * * * mataroa/backups
# domains
dokku domains:report mataroa
dokku domains:add mataroa mataroa.blog
dokku domains:remove mataroa mataroa.projects.sirodoht.com
dokku letsencrypt mataroa
dokku letsencrypt:cron-job --add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment