From 8ad2862d9effd2cbeb44fa7439f5c84f537f9baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 29 Jun 2024 22:39:53 +0200 Subject: [PATCH] Try to fix bundle install --- scripts/_common.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8effd5b..1de3bc1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -26,16 +26,22 @@ fi #================================================= env_ruby() { - ynh_exec_warn_less ynh_exec_as "$app" env RAILS_ENV=production "$ynh_ruby_load_path" "$@" + ynh_exec_as "$app" "$ynh_ruby_load_path" env RAILS_ENV=production "$@" } fabmanager_build_ruby() { pushd "$install_dir" ynh_use_ruby - ynh_exec_warn_less $ynh_gem install bundler + ynh_gem update --system --no-document + ynh_gem install bundler rake --no-document + env_ruby bin/bundle config --global frozen 1 - env_ruby bin/bundle install --binstubs --without 'development test doc' + env_ruby bin/bundle config set without 'development test doc' + env_ruby bin/bundle config set path 'vendor/bundle' + env_ruby bin/bundle install + env_ruby bin/bundle binstubs --all + popd }