mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
Update install
This commit is contained in:
parent
811b26797b
commit
56fa91363e
1 changed files with 2 additions and 3 deletions
|
@ -180,16 +180,15 @@ pushd $final_path/$app/js
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd $final_path/$app
|
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
|
source .env
|
||||||
sudo -u "$app" MIX_ENV=prod mix local.hex --force
|
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 local.rebar --force
|
||||||
sudo -u "$app" MIX_ENV=prod mix deps.get
|
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 ecto.migrate
|
||||||
sudo -u "$app" MIX_ENV=prod mix phx.digest
|
sudo -u "$app" MIX_ENV=prod mix phx.digest
|
||||||
popd
|
|
||||||
|
|
||||||
# Modify log level
|
|
||||||
ynh_replace_string --match_string="#config :logger" --replace_string="config :logger" --target_file="$final_path/$app/config/prod.exs"
|
ynh_replace_string --match_string="#config :logger" --replace_string="config :logger" --target_file="$final_path/$app/config/prod.exs"
|
||||||
|
popd
|
||||||
|
|
||||||
curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz --output GeoLite2-City.tar.gz -s && tar zxf GeoLite2-City.tar.gz && mkdir -p /usr/share/GeoIP && mv GeoLite2-City_*/GeoLite2-City.mmdb $final_path/$app/priv/data/GeoLite2-City.mmdb
|
curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz --output GeoLite2-City.tar.gz -s && tar zxf GeoLite2-City.tar.gz && mkdir -p /usr/share/GeoIP && mv GeoLite2-City_*/GeoLite2-City.mmdb $final_path/$app/priv/data/GeoLite2-City.mmdb
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue