diff --git a/conf/.env b/conf/.env index 592e830..3c79767 100644 --- a/conf/.env +++ b/conf/.env @@ -11,7 +11,7 @@ GRAPHQL_API_FULL_PATH="" # APP MIX_ENV=prod -MOBILIZON_LOGLEVEL="info" +MOBILIZON_LOGLEVEL="error" MOBILIZON_SECRET="__SECRET__" # Database diff --git a/scripts/install b/scripts/install index b95e0e5..7054b60 100644 --- a/scripts/install +++ b/scripts/install @@ -184,12 +184,14 @@ pushd $final_path/$app/js popd pushd $final_path/$app + ynh_replace_string --match_string="config :logger" --replace_string="#config :logger" --target_file="$final_path/$app/config/prod.exs" source .env sudo -u "$app" MIX_ENV=prod mix local.hex --force sudo -u "$app" MIX_ENV=prod mix local.rebar --force sudo -u "$app" MIX_ENV=prod mix deps.get sudo -u "$app" MIX_ENV=prod mix ecto.migrate sudo -u "$app" MIX_ENV=prod mix phx.digest + ynh_replace_string --match_string="#config :logger" --replace_string="config :logger" --target_file="$final_path/$app/config/prod.exs" popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index b8a085a..8ce3564 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -195,12 +195,14 @@ pushd $final_path/$app/js popd pushd $final_path/$app + ynh_replace_string --match_string="config :logger" --replace_string="#config :logger" --target_file="$final_path/$app/config/prod.exs" source .env sudo -u "$app" MIX_ENV=prod mix local.hex --force sudo -u "$app" MIX_ENV=prod mix local.rebar --force sudo -u "$app" MIX_ENV=prod mix deps.get sudo -u "$app" MIX_ENV=prod mix ecto.migrate sudo -u "$app" MIX_ENV=prod mix phx.digest + ynh_replace_string --match_string="#config :logger" --replace_string="config :logger" --target_file="$final_path/$app/config/prod.exs" popd #=================================================