secrets without elixir

This commit is contained in:
Mayel de Borniol 2023-01-30 17:43:04 +13:00
parent 62645d2224
commit 696c4ced80
2 changed files with 10 additions and 4 deletions

View file

@ -20,7 +20,7 @@ config :bonfire_search,
## Other general test config ## Other general test config
config :logger, config :logger,
level: :info, level: :debug,
truncate: :infinity truncate: :infinity
config :logger, :console, truncate: :infinity config :logger, :console, truncate: :infinity

View file

@ -668,9 +668,15 @@ db-pre-migrations:
-touch priv/repo/* -touch priv/repo/*
# Generate secrets # Generate secrets
@secrets: @secrets:
cd lib/mix/ && ln -sf ../../extensions/bonfire/lib/mix/tasks || ln -sf ../../deps/bonfire/lib/mix/tasks just rand
cd lib/mix/tasks/secrets/ && mix escript.build && ./secrets 128 3 just rand
just rand
# cd lib/mix/ && ln -sf ../../extensions/bonfire/lib/mix/tasks || ln -sf ../../deps/bonfire/lib/mix/tasks
# cd lib/mix/tasks/secrets/ && mix escript.build && ./secrets 128 3
@rand:
echo {{ uuid() }}-{{ uuid() }}-{{ uuid() }}-{{ uuid() }}
# Start or stop nix postgres server # Start or stop nix postgres server
@nix-db pg_cmd: @nix-db pg_cmd: