Update nexus.sh
This commit is contained in:
parent
ce82ddf859
commit
d67e2a6d31
2
nexus.sh
2
nexus.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user