You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: daprdocs/content/en/concepts/dapr-services/sidecar.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -49,10 +49,10 @@ For a detailed list of all available arguments run `daprd --help` or see this [t
49
49
daprd --app-id --app-port 5000
50
50
```
51
51
52
-
3. If you are using several custom components and want to specify the location of the component definition files, use the `--components-path` argument:
52
+
3. If you are using several custom resources and want to specify the location of the resource definition files, use the `--resources-path` argument:
Copy file name to clipboardexpand all lines: daprdocs/content/en/developing-applications/building-blocks/pubsub/howto-publish-subscribe.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -63,46 +63,46 @@ scopes:
63
63
- checkout
64
64
```
65
65
66
-
You can override this file with another [pubsub component]({{< ref setup-pubsub >}}) by creating a components directory (in this example, `myComponents`) containing the file and using the flag `--components-path` with the `dapr run` CLI command.
66
+
You can override this file with another [pubsub component]({{< ref setup-pubsub >}}) by creating a components directory (in this example, `myComponents`) containing the file and using the flag `--resources-path` with the `dapr run` CLI command.
67
67
68
68
{{< tabs Dotnet Java Python Go Javascript >}}
69
69
70
70
{{% codetab %}}
71
71
72
72
```bash
73
-
dapr run --app-id myapp --components-path ./myComponents -- dotnet run
73
+
dapr run --app-id myapp --resources-path ./myComponents -- dotnet run
74
74
```
75
75
76
76
{{% /codetab %}}
77
77
78
78
{{% codetab %}}
79
79
80
80
```bash
81
-
dapr run --app-id myapp --components-path ./myComponents -- mvn spring-boot:run
81
+
dapr run --app-id myapp --resources-path ./myComponents -- mvn spring-boot:run
82
82
```
83
83
84
84
{{% /codetab %}}
85
85
86
86
{{% codetab %}}
87
87
88
88
```bash
89
-
dapr run --app-id myapp --components-path ./myComponents -- python3 app.py
89
+
dapr run --app-id myapp --resources-path ./myComponents -- python3 app.py
90
90
```
91
91
92
92
{{% /codetab %}}
93
93
94
94
{{% codetab %}}
95
95
96
96
```bash
97
-
dapr run --app-id myapp --components-path ./myComponents -- go run app.go
97
+
dapr run --app-id myapp --resources-path ./myComponents -- go run app.go
98
98
```
99
99
100
100
{{% /codetab %}}
101
101
102
102
{{% codetab %}}
103
103
104
104
```bash
105
-
dapr run --app-id myapp --components-path ./myComponents -- npm start
105
+
dapr run --app-id myapp --resources-path ./myComponents -- npm start
Next, start a Dapr application. Refer to the [component configuration file](../query-api-examples/components/mongodb/mongodb.yml), which instructs Dapr to use MongoDB as its state store.
97
97
98
98
```bash
99
-
dapr run --app-id demo --dapr-http-port 3500 --components-path query-api-examples/components/mongodb
99
+
dapr run --app-id demo --dapr-http-port 3500 --resources-path query-api-examples/components/mongodb
100
100
```
101
101
102
102
Populate the state store with the employee dataset, so you can query it later.
The code inside the `process_batch`functionis executed every 10 seconds (defined in [`binding-cron.yaml`]({{< ref "#componentsbinding-cronyaml-component-file">}}) in the `components` directory). The binding trigger looks fora route called via HTTP POSTin your Flask application by the Dapr sidecar.
@@ -495,7 +495,7 @@ dotnet build batch.csproj
495
495
Run the `batch-sdk` service alongside a Dapr sidecar.
496
496
497
497
```bash
498
-
dapr run --app-id batch-sdk --app-port 7002 --components-path ../../../components -- dotnet run
498
+
dapr run --app-id batch-sdk --app-port 7002 --resources-path ../../../components -- dotnet run
499
499
```
500
500
501
501
The code inside the `process_batch` function is executed every 10 seconds (defined in [`binding-cron.yaml`]({{< ref "#componentsbinding-cronyaml-component-file" >}}) in the `components` directory). The binding trigger looks for a route called via HTTP POST in your Flask application by the Dapr sidecar.
@@ -701,7 +701,7 @@ mvn clean install
701
701
Run the `batch-sdk` service alongside a Dapr sidecar.
The code inside the `process_batch`functionis executed every 10 seconds (defined in [`binding-cron.yaml`]({{< ref "#componentsbinding-cronyaml-component-file">}}) in the `components` directory). The binding trigger looks fora route called via HTTP POSTin your Flask application by the Dapr sidecar.
@@ -908,7 +908,7 @@ go build .
908
908
Run the `batch-sdk` service alongside a Dapr sidecar.
909
909
910
910
```bash
911
-
dapr run --app-id batch-sdk --app-port 6002 --dapr-http-port 3502 --dapr-grpc-port 60002 --components-path ../../../components -- go run .
911
+
dapr run --app-id batch-sdk --app-port 6002 --dapr-http-port 3502 --dapr-grpc-port 60002 --resources-path ../../../components -- go run .
912
912
```
913
913
914
914
The code inside the `process_batch` function is executed every 10 seconds (defined in [`binding-cron.yaml`]({{< ref "#componentsbinding-cronyaml-component-file" >}}) in the `components` directory). The binding trigger looks for a route called via HTTP POST in your Flask application by the Dapr sidecar.
Run the `checkout` publisher service alongside a Dapr sidecar.
106
106
107
107
```bash
108
-
dapr run --app-id checkout --components-path ../../../components/ -- python3 app.py
108
+
dapr run --app-id checkout --resources-path ../../../components/ -- python3 app.py
109
109
```
110
110
111
111
> **Note**: Since Python3.exe is not defined in Windows, you may need to use `python app.py` instead of `python3 app.py`.
@@ -235,7 +235,7 @@ Verify you have the following files included in the service directory:
235
235
Run the `order-processor` subscriber service alongside a Dapr sidecar.
236
236
237
237
```bash
238
-
dapr run --app-port 5001 --app-id order-processing --app-protocol http --dapr-http-port 3501 --components-path ../../../components -- npm run start
238
+
dapr run --app-port 5001 --app-id order-processing --app-protocol http --dapr-http-port 3501 --resources-path ../../../components -- npm run start
239
239
```
240
240
241
241
In the `order-processor` subscriber, we're subscribing to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. This enables your app code to talk to the Redis component instance through the Dapr sidecar.
@@ -267,7 +267,7 @@ Verify you have the following files included in the service directory:
267
267
Run the `checkout` publisher service alongside a Dapr sidecar.
268
268
269
269
```bash
270
-
dapr run --app-id checkout --app-protocol http --dapr-http-port 3500 --components-path ../../../components -- npm run start
270
+
dapr run --app-id checkout --app-protocol http --dapr-http-port 3500 --resources-path ../../../components -- npm run start
271
271
```
272
272
273
273
In the `checkout` publisher service, we're publishing the orderId message to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. As soon as the service starts, it publishes in a loop:
@@ -389,7 +389,7 @@ dotnet build
389
389
Run the `order-processor` subscriber service alongside a Dapr sidecar.
390
390
391
391
```bash
392
-
dapr run --app-id order-processor --components-path ../../../components --app-port 7002 -- dotnet run
392
+
dapr run --app-id order-processor --resources-path ../../../components --app-port 7002 -- dotnet run
393
393
```
394
394
395
395
In the `order-processor` subscriber, we're subscribing to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. This enables your app code to talk to the Redis component instance through the Dapr sidecar.
@@ -423,7 +423,7 @@ dotnet build
423
423
Run the `checkout` publisher service alongside a Dapr sidecar.
424
424
425
425
```bash
426
-
dapr run --app-id checkout --components-path ../../../components -- dotnet run
426
+
dapr run --app-id checkout --resources-path ../../../components -- dotnet run
427
427
```
428
428
429
429
In the `checkout` publisher, we're publishing the orderId message to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. As soon as the service starts, it publishes in a loop:
@@ -544,7 +544,7 @@ mvn clean install
544
544
Run the `order-processor` subscriber service alongside a Dapr sidecar.
In the `order-processor` subscriber, we're subscribing to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. This enables your app code to talk to the Redis component instance through the Dapr sidecar.
@@ -582,7 +582,7 @@ mvn clean install
582
582
Run the `checkout` publisher service alongside a Dapr sidecar.
583
583
584
584
```bash
585
-
dapr run --app-id checkout --components-path ../../../components -- java -jar target/CheckoutService-0.0.1-SNAPSHOT.jar
585
+
dapr run --app-id checkout --resources-path ../../../components -- java -jar target/CheckoutService-0.0.1-SNAPSHOT.jar
586
586
```
587
587
588
588
In the `checkout` publisher, we're publishing the orderId message to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. As soon as the service starts, it publishes in a loop:
@@ -706,7 +706,7 @@ go build .
706
706
Run the `order-processor` subscriber service alongside a Dapr sidecar.
707
707
708
708
```bash
709
-
dapr run --app-port 6002 --app-id order-processor-sdk --app-protocol http --dapr-http-port 3501 --components-path ../../../components -- go run .
709
+
dapr run --app-port 6002 --app-id order-processor-sdk --app-protocol http --dapr-http-port 3501 --resources-path ../../../components -- go run .
710
710
```
711
711
712
712
In the `order-processor` subscriber, we're subscribing to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. This enables your app code to talk to the Redis component instance through the Dapr sidecar.
@@ -736,7 +736,7 @@ go build .
736
736
Run the `checkout` publisher service alongside a Dapr sidecar.
737
737
738
738
```bash
739
-
dapr run --app-id checkout --app-protocol http --dapr-http-port 3500 --components-path ../../../components -- go run .
739
+
dapr run --app-id checkout --app-protocol http --dapr-http-port 3500 --resources-path ../../../components -- go run .
740
740
```
741
741
742
742
In the `checkout` publisher, we're publishing the orderId message to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. As soon as the service starts, it publishes in a loop:
Run the `order-processor` service alongside a Dapr sidecar.
52
52
53
53
```bash
54
-
dapr run --app-id order-processor --components-path ../../../components/ -- python3 app.py
54
+
dapr run --app-id order-processor --resources-path ../../../components/ -- python3 app.py
55
55
```
56
56
57
57
> **Note**: Since Python3.exe is not defined in Windows, you may need to use `python app.py` instead of `python3 app.py`.
@@ -172,7 +172,7 @@ Verify you have the following files included in the service directory:
172
172
Run the `order-processor` service alongside a Dapr sidecar.
173
173
174
174
```bash
175
-
dapr run --app-id order-processor --components-path ../../../components/ -- npm run start
175
+
dapr run --app-id order-processor --resources-path ../../../components/ -- npm run start
176
176
```
177
177
The `order-processor` service writes, reads, and deletes an `orderId` key/value pair to the `statestore` instance [defined in the `statestore.yaml` component]({{< ref "#statestoreyaml-component-file" >}}). As soon as the service starts, it performs a loop.
178
178
@@ -300,7 +300,7 @@ dotnet build
300
300
Run the `order-processor` service alongside a Dapr sidecar.
301
301
302
302
```bash
303
-
dapr run --app-id order-processor --components-path ../../../components/ -- dotnet run
303
+
dapr run --app-id order-processor --resources-path ../../../components/ -- dotnet run
304
304
```
305
305
306
306
The `order-processor` service writes, reads, and deletes an `orderId` key/value pair to the `statestore` instance [defined in the `statestore.yaml` component]({{< ref "#statestoreyaml-component-file" >}}). As soon as the service starts, it performs a loop.
@@ -419,7 +419,7 @@ mvn clean install
419
419
Run the `order-processor` service alongside a Dapr sidecar.
420
420
421
421
```bash
422
-
dapr run --app-id order-processor --components-path ../../../components -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar
422
+
dapr run --app-id order-processor --resources-path ../../../components -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar
423
423
```
424
424
425
425
The `order-processor` service writes, reads, and deletes an `orderId` key/value pair to the `statestore` instance [defined in the `statestore.yaml` component]({{< ref "#statestoreyaml-component-file" >}}). As soon as the service starts, it performs a loop.
@@ -538,7 +538,7 @@ go build .
538
538
Run the `order-processor` service alongside a Dapr sidecar.
539
539
540
540
```bash
541
-
dapr run --app-id order-processor --components-path ../../../components -- go run .
541
+
dapr run --app-id order-processor --resources-path ../../../components -- go run .
542
542
```
543
543
544
544
The `order-processor` service writes, reads, and deletes an `orderId` key/value pair to the `statestore` instance [defined in the `statestore.yaml` component]({{< ref "#statestoreyaml-component-file" >}}). As soon as the service starts, it performs a loop.
Copy file name to clipboardexpand all lines: daprdocs/content/en/getting-started/tutorials/configure-state-pubsub.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -317,9 +317,9 @@ When you run `dapr init`, Dapr creates a default redis `pubsub.yaml` on your loc
317
317
For new component files:
318
318
319
319
1. Create a new `components` directory in your app folder containing the YAML files.
320
-
1. Provide the path to the `dapr run` command with the flag `--components-path`
320
+
1. Provide the path to the `dapr run` command with the flag `--resources-path`
321
321
322
-
If you initialized Dapr in [slim mode]({{< ref self-hosted-no-docker.md >}}) (without Docker), you need to manually create the default directory, or always specify a components directory using `--components-path`.
322
+
If you initialized Dapr in [slim mode]({{< ref self-hosted-no-docker.md >}}) (without Docker), you need to manually create the default directory, or always specify a components directory using `--resources-path`.
0 commit comments