Skip to content

Commit 085664c

Browse files
committed
feat: updated env files
1 parent 1e546fd commit 085664c

4 files changed

Lines changed: 23 additions & 10 deletions

File tree

.env-example

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
ENVIRONMENT='development'
2-
MODE='dynamic'
3-
REDIS_URL='redis://localhost:6379'
4-
RABBITMQ_URL='amqp://localhost:5672'
2+
MODE='static'
3+
NATS_URL='nats://localhost:4222'
4+
NATS_BUCKET='flow_store'
5+
GRPC_HOST='127.0.0.1'
6+
GRPC_PORT=8081
7+
WITH_HEALTH_SERVICE=false
58
AQUILA_URL='http://localhost:8080'
6-
PORT=8080
9+
DEFINITION_PATH='./definitions'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ jobs:
8383
needs: build
8484
runs-on: ubuntu-latest
8585
steps:
86+
- name: Checkout code
87+
uses: actions/checkout@v5
88+
89+
- name: Install Rust toolchain
90+
uses: dtolnay/rust-toolchain@stable
91+
8692
- name: Cache cargo registry
8793
uses: actions/cache@v4
8894
with:

adapter/rest/src/.env

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
HTTP_PORT=8081
2-
REDIS_URL=redis://localhost:6379
3-
RABBITMQ_URL=amqp://localhost:5672
4-
AQUILA_URL=http://localhost:8080
5-
IS_STATIC=false
1+
ENVIRONMENT='development'
2+
MODE='static'
3+
NATS_URL='nats://localhost:4222'
4+
NATS_BUCKET='flow_store'
5+
GRPC_HOST='127.0.0.1'
6+
GRPC_PORT=8081
7+
WITH_HEALTH_SERVICE=false
8+
AQUILA_URL='http://localhost:8080'
9+
DEFINITION_PATH='./definitions'

crates/base/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl AdapterConfig {
7474
let mode = code0_flow::flow_config::env_with_default("MODE", Mode::STATIC);
7575
let definition_path = code0_flow::flow_config::env_with_default(
7676
"DEFINITION_PATH",
77-
String::from("./definition.yaml"),
77+
String::from("./definition"),
7878
);
7979
let with_health_service =
8080
code0_flow::flow_config::env_with_default("WITH_HEALTH_SERVICE", false);

0 commit comments

Comments
 (0)