Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions envs/gcp/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,8 @@ resource "google_compute_instance" "orion_client_vm" {
host = self.network_interface[0].access_config[0].nat_ip
}

provisioner "file" {
source = "${path.module}/orion-config"
destination = "/home/orion/orion-runner"
}


service_account {
scopes = ["cloud-platform"]
}
Expand Down
5 changes: 0 additions & 5 deletions envs/gcp/prod/orion-config/.env

This file was deleted.

112 changes: 0 additions & 112 deletions envs/gcp/prod/orion-config/run.sh

This file was deleted.

29 changes: 0 additions & 29 deletions envs/gcp/prod/orion-config/scorpio.toml

This file was deleted.

13 changes: 11 additions & 2 deletions envs/gcp/prod/scripts/startup-orion-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ mkdir -p \
/home/orion/orion-runner

chown -R orion:orion /home/orion/orion-runner
chmod +x /home/orion/orion-runner/run.sh

# 条件设置权限(首次部署时文件可能不存在,等待 CI 部署)
if [ -f /home/orion/orion-runner/run.sh ]; then
chmod +x /home/orion/orion-runner/run.sh
fi
if [ -f /home/orion/orion-runner/orion ]; then
chmod +x /home/orion/orion-runner/orion
fi

# Install Rust toolchain if missing
if ! command -v rustc >/dev/null 2>&1; then
Expand Down Expand Up @@ -99,6 +106,8 @@ EOF

systemctl daemon-reload
systemctl enable orion-runner
systemctl restart orion-runner


systemctl restart orion-runner || echo "Note: Service start failed (waiting for CI deployment)"

echo "===== Orion startup finished ====="
Loading