From f4487bb3df27286b811579116af4decb8bd29fea Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 19 May 2020 13:25:24 +0200 Subject: fix bundle install --- scripts/install | 4 +++- scripts/upgrade | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/install b/scripts/install index c359dfd..f6a1411 100644 --- a/scripts/install +++ b/scripts/install @@ -199,7 +199,9 @@ chown -R "$app": "$final_path" pushd "$final_path/live" ynh_use_nodejs - bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test + bundle config deployment 'true' + bundle config without 'development test' + bundle install -j$(getconf _NPROCESSORS_ONLN) yarn install --pure-lockfile echo "SAFETY_ASSURED=1">> $config RAILS_ENV=production bundle exec rails db:setup --quiet diff --git a/scripts/upgrade b/scripts/upgrade index 7d747e0..ee97cde 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -289,7 +289,9 @@ chown -R "$app": "$final_path" pushd "$final_path/live" ynh_use_nodejs - bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test + bundle config deployment 'true' + bundle config without 'development test' + bundle install -j$(getconf _NPROCESSORS_ONLN) yarn install --pure-lockfile RAILS_ENV=production bundle exec rails assets:clean RAILS_ENV=production bundle exec rails assets:precompile -- cgit v1.2.3-70-g09d2