MaybeFinance: move Ruby check/install/update to later

This commit is contained in:
vhsdream
2025-06-10 12:40:39 -04:00
parent 5d302a4db6
commit e23808d261
2 changed files with 4 additions and 3 deletions

View File

@@ -49,11 +49,12 @@ function update_script() {
rm ./config/credentials.yml.enc
source ~/.profile
$STD tar -xf "$BACKUP_FILE" --directory=/
RUBY_VERSION="$(cat /opt/maybe/.ruby-version)" RUBY_INSTALL_RAILS=false setup_rbenv_stack
$STD ./bin/bundle install
$STD ./bin/bundle exec bootsnap precompile --gemfile -j 0
$STD ./bin/bundle exec bootsnap precompile -j 0 app/ lib/
export SECRET_KEY_BASE_DUMMY=1
$STD ./bin/rails assets:precompile
$STD dotenv -f ./.env ./bin/rails assets:precompile
$STD dotenv -f ./.env ./bin/rails db:prepare
msg_ok "Updated $APP to v${RELEASE}"