Skip to content

Instantly share code, notes, and snippets.

@col
Last active November 28, 2017 22:53
Show Gist options
  • Save col/f12f6e74d49b6d34ffd9 to your computer and use it in GitHub Desktop.
Save col/f12f6e74d49b6d34ffd9 to your computer and use it in GitHub Desktop.
Config Phoenix App For Dokku Deploy

Config Phoenix App For Dokku Deploy

  1. Set the hostname via an environment variable in prod.exs
  • url: [host: System.get_env("HOSTNAME"), port: 80],
  1. Set the secret key base via an environment variable in prod.secret.exs
  • secret_key_base: System.get_env("SECRET_KEY_BASE")
  1. Set the database connection url via an environment variable in prod.secret.exs
  • url: System.get_env("DATABASE_URL"),
  1. Comment out the following lines in .gitignore
  • #/priv/static/
  • #/config/prod.secret.exs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment