diff --git a/scripts/install b/scripts/install index 4208c87..e229dbb 100755 --- a/scripts/install +++ b/scripts/install @@ -248,44 +248,29 @@ fi #================================================= # Give permission to the final_path chown -R "$app":"$app" "$final_path" +# App setup and db migration +( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix local.hex --force ) +( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix local.rebar --force ) +( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix deps.get ) +read -rsp $'Press enter to continue...\n' -# Install dependecies -su -l "$app" -s /bin/bash <