Update nexus.sh

This commit is contained in:
sdohuajia 2024-10-11 10:12:45 +08:00 committed by GitHub
parent ce82ddf859
commit d67e2a6d31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,6 +116,7 @@ function start_node() {
# 加载 Rust 环境 # 加载 Rust 环境
source $HOME/.cargo/env source $HOME/.cargo/env
export PATH="$HOME/.cargo/bin:$PATH"
echo "Rust 环境已加载。" echo "Rust 环境已加载。"
fi fi
@ -148,7 +149,6 @@ After=network.target
User=$USER User=$USER
WorkingDirectory=$HOME/network-api/clients/cli WorkingDirectory=$HOME/network-api/clients/cli
Environment=NONINTERACTIVE=1 Environment=NONINTERACTIVE=1
Environment=PATH=/root/.cargo/bin:$PATH
ExecStart=$HOME/.cargo/bin/cargo run --release --bin prover -- beta.orchestrator.nexus.xyz ExecStart=$HOME/.cargo/bin/cargo run --release --bin prover -- beta.orchestrator.nexus.xyz
Restart=always Restart=always
RestartSec=10 RestartSec=10