From 964fdd0025d472395b1342901df9d796ed4a4af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Szyma=C5=84ski?= Date: Tue, 16 Apr 2024 23:32:56 +0200 Subject: [PATCH] Fixup paths in frontend --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 920e7c5..9b9638e 100644 --- a/scripts/install +++ b/scripts/install @@ -74,13 +74,13 @@ pushd $install_dir/build/frontend ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production yarn run compile - ynh_replace_string --match_string="%version%" --replace_string="$version" --target_file="$install_dir/build/frontend/target/dist/index.html" - ynh_replace_string --match_string="%buildDate%" --replace_string="$build_date" --target_file="$install_dir/build/frontend/target/dist/index.html" + ynh_replace_string --match_string="%version%" --replace_string="$version" --target_file="$install_dir/build/frontend/resources/public/index.html" + ynh_replace_string --match_string="%buildDate%" --replace_string="$build_date" --target_file="$install_dir/build/frontend/resources/public/index.html" #echo "$version" > target/version.txt; popd mkdir -p $install_dir/frontend -mv $install_dir/build/frontend/target/dist/* $install_dir/frontend +mv $install_dir/build/frontend/resources/public/* $install_dir/frontend chown -R $app:www-data $install_dir/frontend chmod -R 750 $install_dir/frontend