Skip to content

Commit ee5774a

Browse files
NathanFlurryMasterPtato
authored andcommitted
fix(dev-full): update to use new ports
1 parent 162ee4b commit ee5774a

File tree

7 files changed

+32
-23
lines changed

7 files changed

+32
-23
lines changed

docker/dev-full/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
networks:
4141
- rivet-network
4242
healthcheck:
43-
test: ["CMD", "curl", "-f", "http://127.0.0.1:8090/health/liveness"]
43+
test: ["CMD", "curl", "-f", "http://127.0.0.1:6430/health/liveness"]
4444
interval: 2s
4545
timeout: 10s
4646
retries: 10
@@ -86,7 +86,7 @@ services:
8686
networks:
8787
- rivet-network
8888
healthcheck:
89-
test: ["CMD", "curl", "-f", "http://127.0.0.1:8090/health/liveness"]
89+
test: ["CMD", "curl", "-f", "http://127.0.0.1:6430/health/liveness"]
9090
interval: 2s
9191
timeout: 10s
9292
retries: 10

docker/dev-full/rivet-edge-server/config.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"cluster_id": "11ca8960-acab-4963-909c-99d72af3e1cb",
99
"datacenter_id": "f288913c-735d-4188-bf9b-2fcf6eac7b9c",
1010
"server_id": "174aca2a-98b7-462c-9ad9-3835094a9a10",
11-
"intercom_endpoint": "http://rivet-server:8081"
11+
"intercom_endpoint": "http://rivet-server:6421"
1212
},
1313
"guard": {
1414
// TLS not configured for local development

docker/dev-full/rivet-guard/config.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"cluster_id": "11ca8960-acab-4963-909c-99d72af3e1cb",
2121
"datacenter_id": "f288913c-735d-4188-bf9b-2fcf6eac7b9c",
2222
"server_id": "174aca2a-98b7-462c-9ad9-3835094a9a10",
23-
"intercom_endpoint": "http://rivet-server:8081"
23+
"intercom_endpoint": "http://rivet-server:6421"
2424
},
2525
"guard": {
2626
// TLS not configured for local development

frontend/apps/hub/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_API_URL=http://127.0.0.1:8080
1+
VITE_APP_API_URL=http://127.0.0.1:6420
22
VITE_APP_ASSETS_URL=https://assets2.rivet.gg
33
VITE_APP_SENTRY_DSN="https://66a566505cfb4341732a3d350f2b87e2@o4504307129188352.ingest.sentry.io/4506435887366144"
44
VITE_APP_SENTRY_PROJECT_ID="4506435887366144"

packages/toolchain/cli/src/util/login.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn inquire_self_hosting() -> Result<Option<String>> {
1515

1616
let api_endpoint = if !using_cloud {
1717
let e = inquire::Text::new("What is the API endpoint?")
18-
.with_default("http://localhost:8080")
18+
.with_default("http://localhost:6420")
1919
.with_validator(|input: &str| match url::Url::parse(input) {
2020
Result::Ok(_) => StdResult::Ok(Validation::Valid),
2121
Err(err) => StdResult::Ok(Validation::Invalid(format!("{err}").into())),

packages/toolchain/toolchain/src/util/actor/logs.rs

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
use crate::{
2-
rivet_api::{apis, models},
3-
ToolchainCtx,
4-
};
1+
use crate::{rivet_api::apis, ToolchainCtx};
52
use anyhow::*;
63
use base64::{engine::general_purpose::STANDARD, Engine};
74
use chrono::{DateTime, Utc};
85
use clap::ValueEnum;
6+
use serde_json::json;
97
use std::time::Duration;
108
use tokio::signal;
119
use tokio::sync::watch;
@@ -63,18 +61,17 @@ async fn tail_streams(
6361
stdout_fetched_tx: watch::Sender<bool>,
6462
stderr_fetched_tx: watch::Sender<bool>,
6563
) -> Result<()> {
66-
// TODO: Update ot use ActorsQueryLogStream::All
6764
tokio::try_join!(
6865
tail_stream(
6966
ctx,
7067
&opts,
71-
models::ActorsQueryLogStream::StdOut,
68+
0, // stdout
7269
stdout_fetched_tx
7370
),
7471
tail_stream(
7572
ctx,
7673
&opts,
77-
models::ActorsQueryLogStream::StdErr,
74+
1, // stderr
7875
stderr_fetched_tx
7976
),
8077
)
@@ -85,7 +82,7 @@ async fn tail_streams(
8582
async fn tail_stream(
8683
ctx: &ToolchainCtx,
8784
opts: &TailOpts<'_>,
88-
stream: models::ActorsQueryLogStream,
85+
stream: i32, // 0 = stdout, 1 = stderr
8986
log_fetched_tx: watch::Sender<bool>,
9087
) -> Result<()> {
9188
let mut watch_index: Option<String> = None;
@@ -95,8 +92,8 @@ async fn tail_stream(
9592
// future doesn't exit.
9693
match (&opts.stream, stream) {
9794
(LogStream::All, _) => {}
98-
(LogStream::StdOut, models::ActorsQueryLogStream::StdOut) => {}
99-
(LogStream::StdErr, models::ActorsQueryLogStream::StdErr) => {}
95+
(LogStream::StdOut, 0) => {}
96+
(LogStream::StdErr, 1) => {}
10097
_ => {
10198
// Notify poll_actor_state
10299
log_fetched_tx.send(true).ok();
@@ -107,15 +104,19 @@ async fn tail_stream(
107104
}
108105

109106
loop {
107+
// Build query expression for a single actor
108+
let query_expr = json!({
109+
"property": "actor_id",
110+
"value": opts.actor_id.to_string(),
111+
"case_sensitive": true
112+
});
113+
let query_json = serde_json::to_string(&query_expr)?;
114+
110115
let res = apis::actors_logs_api::actors_logs_get(
111116
&ctx.openapi_config_cloud,
112-
stream,
113-
&serde_json::to_string(&vec![opts.actor_id])?,
117+
&query_json,
114118
Some(&ctx.project.name_id),
115119
Some(opts.environment),
116-
None,
117-
None,
118-
None,
119120
watch_index.as_deref(),
120121
)
121122
.await
@@ -127,7 +128,15 @@ async fn tail_stream(
127128
first_batch_fetched = true;
128129
}
129130

130-
for (ts, line) in res.timestamps.iter().zip(res.lines.iter()) {
131+
// Filter logs by stream type
132+
for (i, (ts, line)) in res.timestamps.iter().zip(res.lines.iter()).enumerate() {
133+
// Check if this log entry is from the stream we're interested in
134+
if let Some(&log_stream) = res.streams.get(i) {
135+
if log_stream != stream {
136+
continue;
137+
}
138+
}
139+
131140
let Result::Ok(ts) = ts.parse::<DateTime<Utc>>() else {
132141
eprintln!("Failed to parse timestamp: {ts} for line {line}");
133142
continue;

tests/load/actor-lifecycle/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Config } from "./types.ts";
22

33
export const CONFIG: Config = {
4-
rivetEndpoint: __ENV.RIVET_ENDPOINT || "http://localhost:8080",
4+
rivetEndpoint: __ENV.RIVET_ENDPOINT || "http://localhost:6420",
55
rivetServiceToken: __ENV.RIVET_SERVICE_TOKEN || undefined,
66
rivetProject: __ENV.RIVET_PROJECT || "default",
77
rivetEnvironment: __ENV.RIVET_ENVIRONMENT || "default",

0 commit comments

Comments
 (0)