This commit is contained in:
Mayel de Borniol 2023-03-24 11:43:26 +13:00
parent 345e81d6bb
commit 54a25e2eda
2 changed files with 4 additions and 4 deletions

View file

@ -109,7 +109,7 @@ just 1.13.0
...
```
Now that your tooling is set up, you have the choice of using pre-built images or building your own. For example if your flavour does not have a prebuilt image on Docker Hub, or if you want to customise any of the extensions, you can build one yourself - see option A2 below.
Now that your tooling is set up, you have the choice of using pre-built images or building your own. For example if your flavour does not have a prebuilt image on Docker Hub, or if you want to customise any of the extensions, you can build one yourself - see option B2 below.
#### Option B1 - Using pre-built Docker images (recommended to start with)

View file

@ -62,8 +62,8 @@ help:
echo "Using flavour '$flavour' at flavours/$flavour with env '$MIX_ENV' with vars from ./flavours/$flavour/config/$ENV_ENV/.env "
mkdir -p ./data
mkdir -p ./config
-rm ./config/deps.flavour.*
-rm ./config/flavour_*
-rm ./config/deps.flavour.* 2> /dev/null
-rm ./config/flavour_* 2> /dev/null
mkdir -p ./flavours/$flavour/config/prod/
mkdir -p ./flavours/$flavour/config/dev/
test -f ./flavours/$flavour/config/$ENV_ENV/.env || (cd flavours/$flavour/config && cat ./templates/public.env ./templates/not_secret.env > ./$ENV_ENV/.env && echo "MIX_ENV=$MIX_ENV" >> ./$ENV_ENV/.env && echo "FLAVOUR=$flavour" >> ./$ENV_ENV/.env)
@ -659,7 +659,7 @@ shell:
# Run a specific mix command, eg: `just mix deps.get` or `just mix "deps.update pointers"`
@mix *args='':
echo % mix $@
just cmd mix $@
{{ if MIX_ENV == "prod" { "echo Ignore mix commands in prod" } else { "just cmd mix $@" } }}
# Run a specific mix command, while ignoring any deps cloned into forks, eg: `just mix-remote deps.get` or `just mix-remote deps.update pointers`
mix-remote *args='': init