From 5be05ceea6ee6e6448db28b4f88290e52daa428c Mon Sep 17 00:00:00 2001 From: shibao Date: Thu, 13 Feb 2025 22:01:54 +0000 Subject: [PATCH] fix broken install step --- config/runtime.exs | 2 +- contributing.md | 2 +- readme.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 9e82292..bfc6183 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -66,7 +66,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 running: mix phx.gen.secret + You can generate one by running: priv/random.sh """ config :memex, MemexWeb.Endpoint, secret_key_base: secret_key_base diff --git a/contributing.md b/contributing.md index 1df41d4..902d1e8 100644 --- a/contributing.md +++ b/contributing.md @@ -113,7 +113,7 @@ In `test` mode (or in the Docker container), memEx will listen for the same envi In `prod` mode (or in the Docker container), memEx 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/memex mix phx.gen.secret` and set for server to start. + with `docker run -it shibaobun/memex 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 b4adf57..c32ba46 100644 --- a/readme.md +++ b/readme.md @@ -41,7 +41,7 @@ You can use the following environment variables to configure memEx 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/memex mix phx.gen.secret` and set for server to start. + with `docker run -it shibaobun/memex 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`.