Bump Stoatchat RAM, limit cargo, remove xyops env
Increase Stoatchat default RAM from 8192 to 10240 in ct/stoatchat.sh and json/stoatchat.json. Add cargo -j 2 to backend builds in ct/stoatchat.sh and install/stoatchat-install.sh to limit parallel jobs. Remove two environment variables (XYOPS_xysat_local and XYOPS_masters) from install/xyops-install.sh service definition to avoid hardcoded local settings.
This commit is contained in:
@@ -39,7 +39,7 @@ fetch_and_deploy_gh_release "stoatchat" "stoatchat/stoatchat" "tarball"
|
||||
|
||||
msg_info "Building Backend (Patience)"
|
||||
cd /opt/stoatchat
|
||||
$STD cargo build --release --bins
|
||||
$STD cargo build --release --bins -j 2
|
||||
msg_ok "Built Backend"
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
@@ -56,8 +56,6 @@ Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/xyops
|
||||
Environment=XYOPS_foreground=1
|
||||
Environment=XYOPS_xysat_local=1
|
||||
Environment=XYOPS_masters=${LOCAL_IP}
|
||||
ExecStart=/usr/bin/node /opt/xyops/lib/main.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
Reference in New Issue
Block a user