Skip to content
Draft
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
10 changes: 8 additions & 2 deletions examples/bazel-7.4/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ build --symlink_prefix=/
# ============================================
# Remote Cache Configuration (NodePort)
# ============================================
build:remote-cache --remote_cache=grpc://localhost:9094
# Railway Public Remote Cache
build:remote-cache --remote_cache=grpcs://ferrisrbe-server-production.up.railway.app
# Local development (NodePort)
# build:remote-cache --remote_cache=grpc://localhost:9094
build:remote-cache --remote_upload_local_results=true
build:remote-cache --remote_timeout=300

# ============================================
# Remote Execution Configuration (NodePort)
# ============================================
build:remote-exec --config=remote-cache
build:remote-exec --remote_executor=grpc://localhost:9092
# Railway Public Remote Executor
build:remote-exec --remote_executor=grpcs://ferrisrbe-server-production.up.railway.app
# Local development (NodePort)
# build:remote-exec --remote_executor=grpc://localhost:9092
build:remote-exec --remote_default_exec_properties=OSFamily=linux
build:remote-exec --remote_default_exec_properties=container-image=
5 changes: 4 additions & 1 deletion examples/bazel-8.x/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ startup --host_jvm_args=-XX:MaxGCPauseMillis=200

build --symlink_prefix=/
# Remote Cache Configuration
build:remote-cache --remote_cache=grpc://localhost:30094
# Railway Public Remote Cache
build:remote-cache --remote_cache=grpcs://ferrisrbe-server-production.up.railway.app
# Local development (NodePort)
# build:remote-cache --remote_cache=grpc://localhost:30094
build:remote-cache --remote_upload_local_results=true
build:remote-cache --remote_timeout=300
5 changes: 4 additions & 1 deletion examples/bazel-9.x/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ startup --host_jvm_args=-XX:MaxGCPauseMillis=200

build --symlink_prefix=/
# Remote Cache Configuration
build:remote-cache --remote_cache=grpc://localhost:30094
# Railway Public Remote Cache
build:remote-cache --remote_cache=grpcs://ferrisrbe-server-production.up.railway.app
# Local development (NodePort)
# build:remote-cache --remote_cache=grpc://localhost:30094
build:remote-cache --remote_upload_local_results=true
build:remote-cache --remote_timeout=300
10 changes: 8 additions & 2 deletions examples/enterprise/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@ build --symlink_prefix=/
# ============================================
# Remote Cache (funciona desde cualquier SO)
# ============================================
build:remote-cache --remote_cache=grpc://localhost:30094
# Railway Public Remote Cache
build:remote-cache --remote_cache=grpcs://ferrisrbe-server-production.up.railway.app
# Local development (NodePort)
# build:remote-cache --remote_cache=grpc://localhost:30094
build:remote-cache --remote_upload_local_results=true
build:remote-cache --remote_timeout=600

# ============================================
# Remote Execution (requiere toolchains Linux)
# ============================================
build:remote-exec --config=remote-cache
build:remote-exec --remote_executor=grpc://localhost:30092
# Railway Public Remote Executor
build:remote-exec --remote_executor=grpcs://ferrisrbe-server-production.up.railway.app
# Local development (NodePort)
# build:remote-exec --remote_executor=grpc://localhost:30092

# Platform for remote execution
build:remote-exec --extra_execution_platforms=//toolchains:linux_arm64
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
info!("║ ✓ Capabilities Service (REAPI v2.3) ║");
info!("╚══════════════════════════════════════════════════════════════╝");

// Read port from RBE_PORT or PORT (Railway uses PORT)
let port = std::env::var("RBE_PORT")
.ok()
.and_then(|p| p.parse().ok())
.or_else(|| std::env::var("PORT").ok().and_then(|p| p.parse().ok()))
.unwrap_or(9092);

let bind_address = std::env::var("RBE_BIND_ADDRESS").unwrap_or_else(|_| "0.0.0.0".to_string());
Expand Down
Loading