make grass optional, debug frontend .env

This commit is contained in:
einhornimmond 2025-12-05 09:16:58 +01:00
parent 389c44e546
commit b4a7b36dc8
3 changed files with 18 additions and 12 deletions

View File

@ -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

View File

@ -56,19 +56,20 @@ then
fi
# rust and grass
if ! command -v cargo > /dev/null
then
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
fi
if ! command -v grass > /dev/null
then
echo "'grass' is missing, will be installed now!"
cargo install grass
fi
fi
# redis
if ! command -v redis-cli --version > /dev/null
then

View File

@ -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