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"