mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
Merge pull request #43 from YunoHost-Apps/fix_log_level
Moving log to error level
This commit is contained in:
commit
6dc72424d6
3 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,7 @@ GRAPHQL_API_FULL_PATH=""
|
|||
|
||||
# APP
|
||||
MIX_ENV=prod
|
||||
MOBILIZON_LOGLEVEL="info"
|
||||
MOBILIZON_LOGLEVEL="error"
|
||||
MOBILIZON_SECRET="__SECRET__"
|
||||
|
||||
# Database
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue