diff --git a/scripts/install b/scripts/install index 71dff90..f2457f0 100644 --- a/scripts/install +++ b/scripts/install @@ -129,8 +129,9 @@ pushd "$install_dir/live" # Building assets ynh_use_nodejs - corepack enable - yarn install + env $ynh_node_load_PATH corepack enable + ynh_exec_warn_less ynh_exec_as "$app" env $ynh_node_load_PATH corepack enable + ynh_exec_warn_less ynh_exec_as "$app" env $ynh_node_load_PATH yarn install echo "SAFETY_ASSURED=1">> "$config" ynh_exec_warn_less ynh_exec_as "$app" RAILS_ENV=production "$ynh_ruby_load_path" "$ld_preload" bin/bundle exec rails db:migrate --quiet ynh_exec_warn_less ynh_exec_as "$app" RAILS_ENV=production "$ynh_ruby_load_path" "$ld_preload" bin/bundle exec rails assets:precompile --quiet