Add accountId and zoneId instructions to deploying guide

This commit is contained in:
Raees Iqbal 2018-09-07 15:36:28 +05:00
parent c33d42d951
commit 61797bf382
No known key found for this signature in database
GPG Key ID: B3F97B33DB90CBDA

View File

@ -15,7 +15,7 @@ The Serverless Framework was designed to provision your Cloudflare Workers Funct
## prerequisites
In order to deploy your Cloudflare Worker, you need to set your Cloudflare email as an environmental variable called `CLOUDFLARE_AUTH_EMAIL`, and your Cloudflare Global API Key as an environmental variable called `CLOUDFLARE_AUTH_KEY`.
In order to deploy your Cloudflare Worker, you need to set your Cloudflare email as an environmental variable called `CLOUDFLARE_AUTH_EMAIL`, and your Cloudflare Global API Key as an environmental variable called `CLOUDFLARE_AUTH_KEY`. You will also need to set `accountId` and `zoneId` in `serverless.yml` under `service.config`, the first part of the path when you open [Cloudflare dashboard] as a logged in user is your `accountId`, e.g. `dash.cloudflare.com/{accountId}`. And the `zoneId` can be found from the overview tab after selecting the desired zone from the [Cloudflare dashboard](https://dash.cloudflare.com/).
Environmental variables are variables that live inside your terminal.