From 61e35d5d0b951327f9b51f2b6e31be6bffb47777 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 3 Oct 2022 21:48:14 +0200 Subject: [PATCH] Fix admin build --- scripts/install | 3 +++ scripts/upgrade | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index b57d7b8..d544dde 100644 --- a/scripts/install +++ b/scripts/install @@ -142,6 +142,9 @@ pushd "$final_path" ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn config set network-timeout 600000 ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn add knex-migrator ember-cli --dev --ignore-workspace-root-check --non-interactive ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn setup # catch-all command provided by Ghost that handles all the setup + pushd "ghost/admin" + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn build --environment/production # well, except for the admin + popd popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index dadbc73..290de65 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -190,6 +190,9 @@ then ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn install --non-interactive ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn add knex-migrator ember-cli --dev --ignore-workspace-root-check --non-interactive ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn setup + pushd "ghost/admin" + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn build --environment/production + popd popd fi