From 68cab1761b30738fae88ca285326550a89340363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 24 Mar 2024 20:33:28 +0100 Subject: [PATCH] Fix restore, upgrade --- scripts/restore | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index dc0bff8..209a127 100644 --- a/scripts/restore +++ b/scripts/restore @@ -60,7 +60,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_script_progression --message="Installing Yarn dependencies..." --weight=10 -pushd "$final_path/live" +pushd "$install_dir/live" ynh_use_nodejs corepack enable yarn install diff --git a/scripts/upgrade b/scripts/upgrade index 46830ec..e2322ee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -104,7 +104,7 @@ pushd "$install_dir/live" ynh_use_nodejs corepack enable yarn install - if [ -d "$final_path/live/public/assets" ]; then + if [ -d "$install_dir/live/public/assets" ]; then ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:clean fi ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile