Generate a random string of 32 characters using the following command for encryption:
# Linux/macOS
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64
# Alternative: OpenSSL
openssl rand -base64 32
- Set the results of that in your
.env
file asCLOAK_KEY
- Source & run setup
source .env &&
mix setup
To start your Phoenix server:
- Run
mix setup
to install and setup dependencies - Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix