Skip to content

Commit b649ca1

Browse files
Anthony-BibleAnthony Bible
andauthored
Make nats-server start up in cli pub-sub example (#272)
Co-authored-by: Anthony Bible <anthony@anthonybible.com>
1 parent c9ed235 commit b649ca1

File tree

1 file changed

+5
-0
lines changed
  • examples/messaging/pub-sub/cli

1 file changed

+5
-0
lines changed

examples/messaging/pub-sub/cli/main.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
# ```
88
# nats context save --server=$NATS_URL local
99
# ```
10+
11+
12+
# Start a nats-server in the background.
13+
nats-server &
14+
1015
NATS_URL="${NATS_URL:-nats://localhost:4222}"
1116

1217
# Publish a message to the subject 'greet.joe'. Nothing will happen

0 commit comments

Comments
 (0)