From 5d17ee0a119f0de85e59a49871af8274d0eb9f76 Mon Sep 17 00:00:00 2001 From: shibao Date: Thu, 13 Feb 2025 22:02:18 +0000 Subject: [PATCH] fix broken install step --- CONTRIBUTING.md | 2 +- README.md | 2 +- config/runtime.exs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ecf3551..e3b99f7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -127,7 +127,7 @@ In `test` mode (or in the Docker container), Cannery will listen for the same en In `prod` mode (or in the Docker container), Cannery will listen for the same environment variables as dev mode, but also include the following at runtime: - `SECRET_KEY_BASE`: Secret key base used to sign cookies. Must be generated - with `docker run -it shibaobun/cannery mix phx.gen.secret` and set for server to start. + with `docker run -it shibaobun/cannery priv/random.sh` and set for server to start. - `SMTP_HOST`: The url for your SMTP email provider. Must be set - `SMTP_PORT`: The port for your SMTP relay. Defaults to `587`. - `SMTP_USERNAME`: The username for your SMTP relay. Must be set! diff --git a/README.md b/README.md index afca5c2..d13cc41 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ You can use the following environment variables to configure Cannery in Defaults to `false`. - `POOL_SIZE`: Controls the pool size to use with PostgreSQL. Defaults to `10`. - `SECRET_KEY_BASE`: Secret key base used to sign cookies. Must be generated - with `docker run -it shibaobun/cannery mix phx.gen.secret` and set for server to start. + with `docker run -it shibaobun/cannery priv/random.sh` and set for server to start. - `REGISTRATION`: Controls if user sign-up should be invite only or set to public. Set to `public` to enable public registration. Defaults to `invite`. - `LOCALE`: Sets a custom default locale. Defaults to `en_US` diff --git a/config/runtime.exs b/config/runtime.exs index 6ab8082..7df1081 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -68,7 +68,7 @@ if config_env() == :prod do System.get_env("SECRET_KEY_BASE") || raise """ environment variable SECRET_KEY_BASE is missing. - You can generate one by calling: mix phx.gen.secret + You can generate one by calling: priv/random.sh """ config :cannery, CanneryWeb.Endpoint, secret_key_base: secret_key_base