1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fab-manager_ynh.git synced 2024-09-03 18:36:16 +02:00

Try to fix bundle install

This commit is contained in:
Salamandar 2024-06-29 22:39:53 +02:00
parent 3bbdac678a
commit b727dce7b1

View file

@ -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
}