Skip to content

Commit 3e922ef

Browse files
authored
Update README.md
1 parent 06b1de5 commit 3e922ef

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ Runtime: Node.js
1414
2. Define Slack webhook url in `.env` file. You can find the webhook url -> [Slack channel webhook](https://api.slack.com/apps/A03FHHA7URG/incoming-webhooks?).
1515
3. Deploy this function to GC. Wait a few min :coffee:
1616
```
17-
gcloud functions deploy <CF_NAME> <TRIGGER_TYPE> --region=<REGION_NAME> --runtime=<CF_RUNTIME>
17+
gcloud functions deploy <CF_NAME> <TRIGGER_TYPE> \
18+
--region=<REGION_NAME> \
19+
--runtime=<CF_RUNTIME>
1820
```
19-
Replace CF_NAME by your own name of this function.
20-
Replace TRIGGER_TYPE by correct trigger type for current function. In this case it is `--trigger-http`
21-
Replace REGION_NAME by region of current project.
21+
Replace CF_NAME by your own name of this function.\
22+
Replace TRIGGER_TYPE by correct trigger type for current function. In this case it is `--trigger-http`\
23+
Replace REGION_NAME by region of current project, in our case is `europe-west1`\
2224
Replace CF_RUNTIME by actual runtime, in our case is `nodejs16`.
2325

2426
4. Check that the function deployed successfully: by command or through GCC UI.
@@ -42,7 +44,7 @@ Runtime: Node.js
4244
```
4345
gcloud functions logs read --execution-id=<EXECUTION_ID> --region=<REGION_NAME>
4446
```
45-
Take `EXECUTION_ID` from the output after executing the commands: `gcloud functions call`.
47+
Take `EXECUTION_ID` from the output after executing the command: `gcloud functions call`.
4648
7. Check slack channel `test-webshop-cf`
4749

4850
Enjoy :fireworks:

0 commit comments

Comments
 (0)