Mayel de Borniol 2024-02-23 22:42:36 +00:00
parent bc485160b1
commit 728b43fd5c
2 changed files with 10 additions and 0 deletions

View file

@ -1067,6 +1067,10 @@ config :bonfire_data_social, Profile,
code:
(quote do
belongs_to(:user, unquote(User), foreign_key: :id, define_field: false)
belongs_to(:icon, Bonfire.Files.Media)
belongs_to(:image, Bonfire.Files.Media)
# multimixins - shouldn't be here really
unquote_splicing(common.([:controlled]))
end)

View file

@ -757,6 +757,12 @@ rebuild: init
@cmd *args='': init
{{ if WITH_DOCKER == "total" { "docker compose run --service-ports web $@" } else {"$@"} }}
cwd *args:
cd {{invocation_directory()}}; $@
cwd-test *args:
cd {{invocation_directory()}}; MIX_ENV=test mix test $@
# Open the shell of the web container, in dev mode
shell:
just cmd bash