Skip to content

Commit

Permalink
Update local.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cristim67 authored Feb 16, 2025
1 parent ffffc1d commit 77521de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/cli-tool/cli-commands/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ You can set this environment variable using one of these methods:

For functions, the environment variable name is constructed by taking the function name set in the `genezio.yaml`, replacing any hyphens (-) with underscores (_), converting it to uppercase, and prefixing it with `GENEZIO_PORT_`. For example:

- If your function is named `user-service`, the environment variable would be `GENEZIO_PORT_USER_SERVICE`
- If your function is named `authHandler`, the environment variable would be `GENEZIO_PORT_AUTHHANDLER`
- If your function is named `user-service`, the environment variable would be `GENEZIO_PORT_FUNCTION_USER_SERVICE`
- If your function is named `authHandler`, the environment variable would be `GENEZIO_PORT_FUNCTION_AUTHHANDLER`

You can set this environment variable using one of these methods:
1. Add it to your `.env` file: `GENEZIO_PORT_<FUNCTION>=<port>`
2. Windows: Run `set GENEZIO_PORT_<FUNCTION>=<port> && genezio local`
3. macOS/Linux: Run `GENEZIO_PORT_<FUNCTION>=<port> genezio local`
1. Add it to your `.env` file: `GENEZIO_PORT_FUNCTION_<FUNCTION>=<port>`
2. Windows: Run `set GENEZIO_PORT_FUNCTION_<FUNCTION>=<port> && genezio local`
3. macOS/Linux: Run `GENEZIO_PORT_FUNCTION_<FUNCTION>=<port> genezio local`

0 comments on commit 77521de

Please sign in to comment.