mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
chore: optimise query and script
This commit is contained in:
parent
9ac56b3b33
commit
0791975864
2 changed files with 11 additions and 11 deletions
|
|
@ -76,7 +76,8 @@ if [[ -f "$ENV_FILE" ]]; then
|
|||
fi
|
||||
|
||||
FASTAPI_PORT=${FASTAPI_PORT:-8000}
|
||||
FASTAPI_WORKERS=${FASTAPI_WORKERS:-1}
|
||||
CPU_CORES=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)
|
||||
FASTAPI_WORKERS=${FASTAPI_WORKERS:-$CPU_CORES}
|
||||
|
||||
###############################################################################
|
||||
### 2) Define services
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue