From 2cb254a4e35265a1a9c552484e3a656ec25fd405 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Fri, 22 Sep 2023 12:36:13 +0200 Subject: [PATCH] Yarn restore after copying data --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 2d1be63..433bca1 100755 --- a/scripts/install +++ b/scripts/install @@ -79,13 +79,12 @@ mkdir "$install_dir/release" chmod -R o-rwx "$install_dir/release" chown -R $app:www-data "$install_dir/release" +mv -f $install_dir/build/.next/standalone/* $install_dir/release + pushd "$install_dir/release" ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn add npm-run-all dotenv prisma popd - -mv -f $install_dir/build/.next/standalone/* $install_dir/release - rm -rf $install_dir/.cache rm -rf $install_dir/build