Skip to content

Commit

Permalink
MIX_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Feb 15, 2025
1 parent 74a5cac commit c463e3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions config/templates/not_secret.env
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,3 @@ MAPBOX_API_KEY=pk.eyJ1IjoibWF5ZWwiLCJhIjoiY2tlMmxzNXF5MGFpaDJ0bzR2M29id2EzOCJ9.Q
# TX_TOKEN=
# AKISMET_API_KEY=

WITH_LV_NATIVE=0
WITH_IMAGE_VIX=1
WITH_AI=0
1 change: 1 addition & 0 deletions config/templates/public.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ WITH_LV_NATIVE=0
WITH_IMAGE_VIX=0
WITH_AI=0
SHOW_DEBUG_IN_DEV=true

4 changes: 3 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ setup:
@_config_flavour-env-init flavour from to:
-cat {{from}}/templates/public.env {{from}}/templates/not_secret.env > {{to}}/$ENV_ENV/.env && echo "MIX_ENV=$MIX_ENV" >> {{to}}/$ENV_ENV/.env

# TODO: use as escript so entire app doesn't need to be compiled?
@_flavour_install select_flavour:
{{ if CI == "true" { "just mix "+select_flavour+".install --yes" } else { "just mix "+select_flavour+".install" } }}
MIX_ENV=dev {{ if CI == "true" { "just mix "+select_flavour+".install --yes" } else { "just mix "+select_flavour+".install" } }}
# NOTE: using dev env as workaround for issue with Igniter in prod: Igniter would have produced invalid syntax. ** (Mix.Error) Unknown dependency :assert_value given to :import_deps in the formatter configuration. Make sure the dependency is listed in your mix.exs for environment :prod and you have run "mix deps.get")

flavour_make_symlinks flavour=FLAVOUR:
just _ln-from-dep ember config/ "*" config/
Expand Down

0 comments on commit c463e3a

Please sign in to comment.