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