From bc69ac837f1f8ec6ad5b05daeb9259009ebe39da Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 15:51:25 +0200 Subject: [PATCH] use rbenv bundle --- templates/install_mastodon.sh.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/install_mastodon.sh.erb b/templates/install_mastodon.sh.erb index 5e24c61..8b2fd66 100644 --- a/templates/install_mastodon.sh.erb +++ b/templates/install_mastodon.sh.erb @@ -12,10 +12,10 @@ if [ ! -e '<%= @mastodon_home %>/.mastodon_install' ]; then sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/bin/rbenv' global '<%= @ruby_version %>' sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/gem' install bundler --no-document echo "Configuring bundle..." - sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/live/bin/bundle' config deployment 'true' - sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/live/bin/bundle' config without 'development test' + sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/bundle' config deployment 'true' + sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/bundle' config without 'development test' echo "Running bundle install..." - sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/live/bin/bundle' install -j$(getconf _NPROCESSORS_ONLN) + sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/bundle' install -j$(getconf _NPROCESSORS_ONLN) echo "Running yarn install..." sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/live/bin/yarn' install --pure-lockfile echo $(date +s) > '<%= @mastodon_home %>/.mastodon_install'