diff --git a/scripts/install b/scripts/install index beda892..bac4c95 100644 --- a/scripts/install +++ b/scripts/install @@ -155,11 +155,14 @@ ynh_system_user_create $app $final_path #================================================= # SPECIFIC SETUP #================================================= -# INSTALLING RUBY +# INSTALLING RUBY AND BUNDLER #================================================= ynh_install_ruby --ruby_version=2.6.0 +/opt/rbenv/versions/2.6.0/bin/gem update --system +/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document + #================================================= # MODIFY A CONFIG FILE #================================================= @@ -199,8 +202,6 @@ chown -R "$app": "$final_path" pushd "$final_path/live" ynh_use_nodejs - #sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem update --system - sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test sudo -u "$app" env PATH=$PATH yarn install --pure-lockfile sudo -u "$app" echo "SAFETY_ASSURED=1">> .env.production