From 3cea0bdc57d60c7f20320394f272b5fd41fd2a1e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 21 Mar 2019 03:26:05 +0100 Subject: [PATCH] fix install --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index beda892..bac4c95 100644 --- a/scripts/install +++ b/scripts/install @@ -155,11 +155,14 @@ ynh_system_user_create $app $final_path #================================================= # SPECIFIC SETUP #================================================= -# INSTALLING RUBY +# INSTALLING RUBY AND BUNDLER #================================================= ynh_install_ruby --ruby_version=2.6.0 +/opt/rbenv/versions/2.6.0/bin/gem update --system +/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document + #================================================= # MODIFY A CONFIG FILE #================================================= @@ -199,8 +202,6 @@ chown -R "$app": "$final_path" pushd "$final_path/live" ynh_use_nodejs - #sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem update --system - sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test sudo -u "$app" env PATH=$PATH yarn install --pure-lockfile sudo -u "$app" echo "SAFETY_ASSURED=1">> .env.production