From 15dcf6809df697241e63d97b6293de23c9a9e727 Mon Sep 17 00:00:00 2001 From: Clivern Date: Sun, 1 Jan 2023 14:29:31 +0100 Subject: [PATCH] fixes & bump --- .gitignore | 6 +++++- README.md | 16 +++++++++++++++- config/runtime.exs | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 12b6f91..7b43819 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,8 @@ npm-debug.log gorilla_test* gorilla_dev* -.vscode \ No newline at end of file +.vscode + +!.env.example +.env.* +.env diff --git a/README.md b/README.md index 6d96d5e..a6ec2d1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - + @@ -35,6 +35,9 @@ $ make migrate To start the application. ```zsh +$ cp .env.example .env.local +$ export $(cat .env | xargs) + $ make run ``` @@ -62,6 +65,17 @@ $ docker run -itd \ -p 5432:5432 \ --name postgresql \ postgres:15.2 + +$ podman run -itd \ + -e POSTGRES_USER=brangus \ + -e POSTGRES_PASSWORD=brangus \ + -e POSTGRES_DB=brangus_dev \ + -p 5432:5432 \ + --name postgresql \ + postgres:15.2 + +# https://github.com/dbcli/pgcli +$ psql -h 127.0.0.1 -U brangus -d brangus_dev -W ``` diff --git a/config/runtime.exs b/config/runtime.exs index 5055c48..f63335f 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -62,7 +62,7 @@ if config_env() == :prod do secret_key_base = System.get_env("APP_SECRET") || raise """ - environment variable SECRET_KEY_BASE is missing. + environment variable APP_SECRET is missing. You can generate one by calling: mix phx.gen.secret """