Skip to content

Commit 16aa570

Browse files
authored
fix command for list namespace in readme and script environment variables (#34)
* fix command for list namespace in readme added ./scripts/ * fix environment variables to match readme * fix environment variables to match readme * fix environment variables to match readme
1 parent 1322cfb commit 16aa570

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

functions/serverless-gateway-python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This example uses:
1212

1313
Deploy the serverless gateway as a container following the Serverless Gateway project instructions.
1414

15-
Make sure to export your gateway base URL (`GATEWAY_HOST`) and an authentication token (`TOKEN`)
15+
*Make sure to export your gateway base URL (`GATEWAY_HOST`) and an authentication token (`TOKEN`)*
1616

1717
## Running
1818

@@ -29,7 +29,7 @@ scw-serverless deploy app.py --gateway-url https://${GATEWAY_HOST} --gateway-api
2929

3030
You can use:
3131
```
32-
./list_gateway_endpoints.sh
32+
./scripts/list_gateway_endpoints.sh
3333
```
3434

3535
### Call your function via its route
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
curl -X POST https://${GATEWAY_URL}/scw \
5-
-H 'X-Auth-Token: ${GATEWAY_TOKEN}' \
4+
curl -X POST https://${GATEWAY_HOST}/scw \
5+
-H 'X-Auth-Token: ${TOKEN}' \
66
-H 'Content-Type: application/json' \
7-
-d '{"target":"$1","relative_url":"$2"}'
7+
-d '{"target":"$1","relative_url":"$2"}'
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
curl -X POST https://${GATEWAY_URL}/scw \
5-
-H 'X-Auth-Token: ${GATEWAY_TOKEN}' \
4+
curl -X POST https://${GATEWAY_HOST}/scw \
5+
-H 'X-Auth-Token: ${TOKEN}' \
66
-H 'Content-Type: application/json' \
7-
-d '{"target":"$1","relative_url":"$2"}'
7+
-d '{"target":"$1","relative_url":"$2"}'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
set -e
33

4-
curl https://${GATEWAY_URL}/scw -H 'X-Auth-Token: ${GATEWAY_TOKEN}'
4+
curl https://${GATEWAY_HOST}/scw -H 'X-Auth-Token: ${TOKEN}'

0 commit comments

Comments
 (0)