CrowdHailer / raxx_kit

Get started with Raxx + Elixir
http://crowdhailer.me/2018-05-01/building-a-distributed-chatroom-with-raxx-kit/
Apache License 2.0
122 stars 10 forks source link

The secret key base should be read from the environment #105

Open CrowdHailer opened 4 years ago

CrowdHailer commented 4 years ago

https://github.com/CrowdHailer/raxx_kit/blob/master/priv/template/lib/app_name/www.ex.eex#L12

A development value can be added to the docker-compose file. There should also be a value setup, somewhere in the config file when not using docker/docker-compose

perhaps an order of runctions

  1. read system env
  2. put in default values, only if in dev
  3. check config