From bab8b0162598b8be120f4c66851a78c738c51811 Mon Sep 17 00:00:00 2001 From: vhsdream Date: Sun, 15 Feb 2026 15:10:16 -0500 Subject: [PATCH] use correct bundle during install & update --- ct/sure.sh | 6 +++--- install/sure-install.sh | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ct/sure.sh b/ct/sure.sh index b512ecd11..fea2d7cc7 100644 --- a/ct/sure.sh +++ b/ct/sure.sh @@ -42,9 +42,9 @@ function update_script() { export RAILS_ENV=production export BUNDLE_DEPLOYMENT=1 export BUNDLE_WITHOUT=development - $STD bundle install - $STD bundle exec bootsnap precompile --gemfile -j 0 - $STD bundle exec bootsnap precompile -j 0 app/ lib/ + $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 unset SECRET_KEY_BASE_DUMMY msg_ok "Updated Sure" diff --git a/install/sure-install.sh b/install/sure-install.sh index f6b7c0782..a8909cca7 100644 --- a/install/sure-install.sh +++ b/install/sure-install.sh @@ -27,16 +27,16 @@ fetch_and_deploy_gh_release "Sure" "we-promise/sure" "tarball" "latest" "/opt/su PG_VERSION="$(sed -n '/postgres:/s/[^[:digit:]]*//p' /opt/sure/compose.example.yml)" setup_postgresql PG_DB_NAME=sure_production PG_DB_USER=sure_user setup_postgresql_db RUBY_VERSION="$(cat /opt/sure/.ruby-version)" RUBY_INSTALL_RAILS=false setup_ruby -$STD rbenv --init && source ~/.bashrc +$STD rbenv init && source ~/.bashrc msg_info "Building Sure" cd /opt/sure export RAILS_ENV=production export BUNDLE_DEPLOYMENT=1 export BUNDLE_WITHOUT=development -$STD bundle install -$STD bundle exec bootsnap precompile --gemfile -j 0 -$STD bundle exec bootsnap precompile -j 0 app/ lib/ +$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 unset SECRET_KEY_BASE_DUMMY msg_ok "Built Sure" @@ -47,9 +47,9 @@ mkdir -p /etc/sure mv /opt/sure/.env.example /etc/sure/.env sed -i -e "/^SECRET_KEY_BASE=/s/secret-value/${KEY}/" \ -e 's/_KEY_BASE=.*$/&\n\nRAILS_FORCE_SSL=false \ - \ - # Change to true when using a reverse proxy \ - RAILS_ASSUME_SSL=false/' \ +\ +# Change to true when using a reverse proxy \ +RAILS_ASSUME_SSL=false/' \ -e "/POSTGRES_PASSWORD=/s/postgres/${PG_DB_PASS}/" \ -e "/POSTGRES_USER=/s/postgres/${PG_DB_USER}\\ POSTGRES_DB=${PG_DB_NAME}/" \