From c5401d6abd6d8f70feb60b3acb11a4a21cc84729 Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Tue, 2 Sep 2025 13:17:55 +0200 Subject: [PATCH] Fix staging deployment: update base_url to correct staging domain --- build.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 209979e..58b8bdd 100755 --- a/build.sh +++ b/build.sh @@ -44,13 +44,12 @@ rm -rf public static/css ./tailwindcss -i css/index.css -o ./static/css/index.css --minify -# echo "Building without prefix..." -# sed 's|base_url = "BASEURL"|base_url = "https://www.mycelium.threefold.io/"|' config.templ.toml > config.toml -# zola --root $ABS_DIR_OF_SCRIPT build -# rsync -avz --delete public/ "root@threefold.info:/root/hero/www/info/$PREFIX/" - -echo "Building with prefix: /$PREFIX/" -sed 's|base_url = "BASEURL"|base_url = "/mycelium/"|' config.templ.toml > config.toml +echo "Building for staging deployment..." +sed 's|base_url = "BASEURL"|base_url = "https://www2.mycelium.threefold.io/"|' config.templ.toml > config.toml zola --root $ABS_DIR_OF_SCRIPT build -rsync -rav --delete public/ "${HOME}/hero/var/www/$PREFIX/" +rsync -avz --delete public/ "root@threefold.info:/root/hero/www/info/$PREFIX/" +# echo "Building with prefix: /$PREFIX/" +# sed 's|base_url = "BASEURL"|base_url = "/mycelium/"|' config.templ.toml > config.toml +# zola --root $ABS_DIR_OF_SCRIPT build +# rsync -rav --delete public/ "${HOME}/hero/var/www/$PREFIX/"