Skip to content

Commit

Permalink
Merge pull request #958 from mathieu-benoit/patch-1
Browse files Browse the repository at this point in the history
Update app.js - `process.env.STATE_STORE_NAME`
  • Loading branch information
paulyuk committed Feb 19, 2024
2 parents 0d128bf + e9b2da2 commit 6a1984a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/hello-kubernetes/node/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app.use(bodyParser.json());
const daprPort = process.env.DAPR_HTTP_PORT ?? "3500";
const daprGRPCPort = process.env.DAPR_GRPC_PORT ?? "50001";

const stateStoreName = `statestore`;
const stateStoreName = process.env.STATE_STORE_NAME ?? "statestore";
const stateUrl = `http://localhost:${daprPort}/v1.0/state/${stateStoreName}`;
const port = process.env.APP_PORT ?? "3000";

Expand Down Expand Up @@ -76,4 +76,4 @@ app.get('/ports', (_req, res) => {
res.status(200).send({DAPR_HTTP_PORT: daprPort, DAPR_GRPC_PORT: daprGRPCPort })
});

app.listen(port, () => console.log(`Node App listening on port ${port}!`));
app.listen(port, () => console.log(`Node App listening on port ${port}!`));

0 comments on commit 6a1984a

Please sign in to comment.