From de3a960c8910ecb7bf4be8ef2a6650a3f0390aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 13 Mar 2024 17:01:37 +0100 Subject: [PATCH] Fix bundler version used --- scripts/_common.sh | 1 + scripts/install | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index cbbc802..d110167 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -10,6 +10,7 @@ pkg_dependencies="ntp ntpdate tzdata curl git imagemagick tzdata libc-dev zlib1g build_pkg_dependencies="build-essential patch libpq-dev" ruby_version="2.6.10" +bundler_version=2.1.4 nodejs_version="14" diff --git a/scripts/install b/scripts/install index 874e8dd..feeb351 100755 --- a/scripts/install +++ b/scripts/install @@ -161,12 +161,12 @@ ynh_script_progression --message="Building app..." --weight=1 pushd $final_path ynh_use_ruby - ynh_exec_warn_less $ynh_gem install bundler + ynh_exec_warn_less $ynh_gem install "bundler:$bundler_version" ynh_exec_warn_less bin/bundle config --global frozen 1 ynh_exec_warn_less bin/bundle config set --local without 'development test doc' ynh_exec_warn_less bin/bundle install ynh_exec_warn_less bin/bundle binstubs --all - + ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install ynh_psql_execute_as_root --sql="ALTER USER $db_user WITH SUPERUSER;" --database="$db_name"