mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
make grass optional, debug frontend .env
This commit is contained in:
parent
389c44e546
commit
b4a7b36dc8
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user