From b4a7b36dc8c4cee504177c6693d262b71c009a50 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 5 Dec 2025 09:16:58 +0100 Subject: [PATCH] make grass optional, debug frontend .env --- deployment/bare_metal/.env.dist | 4 +++ deployment/bare_metal/install-missing-deps.sh | 25 ++++++++++--------- deployment/bare_metal/start.sh | 1 + 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/deployment/bare_metal/.env.dist b/deployment/bare_metal/.env.dist index 6df408d71..9377fa7a2 100644 --- a/deployment/bare_metal/.env.dist +++ b/deployment/bare_metal/.env.dist @@ -31,6 +31,10 @@ FEDERATION_DHT_TOPIC=GRADIDO_HUB # Advanced Server Setup +# SCSS Parsing +# grass speed up frontend building, but needs some time for the first setup because it is a rust program which need to be compiled +USE_GRASS=false + # Logging LOG_LEVEL=info GRADIDO_LOG_PATH=/home/gradido/gradido/deployment/bare_metal/log diff --git a/deployment/bare_metal/install-missing-deps.sh b/deployment/bare_metal/install-missing-deps.sh index 4d4fef813..1eb2d616e 100644 --- a/deployment/bare_metal/install-missing-deps.sh +++ b/deployment/bare_metal/install-missing-deps.sh @@ -56,19 +56,20 @@ then fi # rust and grass -if ! command -v cargo > /dev/null -then - echo "'cargo' is missing, will be installed now!" - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - export CARGO_HOME="$HOME/.cargo" - export PATH="$CARGO_HOME/bin:$PATH" +if [ "$USE_GRASS" = true ]; then + if ! command -v cargo > /dev/null + then + echo "'cargo' is missing, will be installed now!" + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + export CARGO_HOME="$HOME/.cargo" + export PATH="$CARGO_HOME/bin:$PATH" + fi + if ! command -v grass > /dev/null + then + echo "'grass' is missing, will be installed now!" + cargo install grass + fi fi -if ! command -v grass > /dev/null -then - echo "'grass' is missing, will be installed now!" - cargo install grass -fi - # redis if ! command -v redis-cli --version > /dev/null then diff --git a/deployment/bare_metal/start.sh b/deployment/bare_metal/start.sh index 194e879e6..4e4ac8e55 100755 --- a/deployment/bare_metal/start.sh +++ b/deployment/bare_metal/start.sh @@ -303,6 +303,7 @@ bun install --frozen-lockfile # build all modules log_step 'build all modules' +log_warn cat $PROJECT_ROOT/frontend/.env turbo build --env-mode=loose --concurrency=$(nproc) # build inspector and dlt-connector