Skip to content

Commit

Permalink
Add note about updated route handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Pinkerton committed Sep 11, 2018
1 parent c4f358c commit 0ec216a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docs/providers/cloudflare-workers/guide/deploying.md
Expand Up @@ -44,12 +44,12 @@ This is the main method for doing deployments with the Serverless Framework:
serverless deploy
```

Use this method when you have updated your Function, Event or Resource configuration in `serverless.yml` and you want to deploy that change (or multiple changes at the same time) to your Cloudflare Worker.
Use this method when you have updated your Function, Event or Resource configuration in `serverless.yml` and you want to deploy that change (or multiple changes at the same time) to your Cloudflare Worker. If you've made changes to any of your routes since last deploying, the Serverless Framework will update them on the server for you.

### How It Works
The Serverless Framework reads in `serverless.yml` and uses it to provision your Functions.

For each defined function in your `serverless.yml` file, the Framework will create a Cloudflare Workers script.
For each defined Function in your `serverless.yml` file, the Framework will create a Cloudflare Workers script. This means that only enterprise customers can declare more than one Function, but anyone can use [webpack](https://developers.cloudflare.com/workers/writing-workers/using-npm-modules/) to package their application into a single script.

For example, let's take the following example `serverless.yml` file:

Expand Down Expand Up @@ -109,5 +109,7 @@ This deployment method updates or deploys a single function. It performs the pla
serverless deploy --function myFunction
```

If you've made changes to the routes corresponding to this Function since last deploying, the Serverless Framework will update them on the server for you.

### Tips
Check out the [deploy command docs](../cli-reference/deploy.md) for all details and options.
2 changes: 1 addition & 1 deletion docs/providers/cloudflare-workers/guide/intro.md
Expand Up @@ -13,7 +13,7 @@ layout: Doc

# Cloudflare Workers - Introduction

The Serverless Framework helps you develop and deploy serverless applications using Cloudflare Workers. It's a CLI that offers structure, automation, and best practices out-of-the-box, allowing you to focus on building sophisticated, event-driven, serverless architectures, comprised of [Functions](#functions) and [Events](#events).
The Serverless Framework helps you develop and deploy serverless applications using Cloudflare Workers. It's a CLI that offers structure, automation, and best practices out-of-the-box, allowing you to focus on building sophisticated, event-driven, serverless architectures, comprised of [Functions](#functions) and [Events](#events). It lets you manage your Worker routing in a flat configuration file that you can keep in alongside the rest of your code in version control, and the Serverless Framework will intelligently manage your routes as they change.

The Serverless Framework is different than other application frameworks because:
* It manages your code as well as your infrastructure
Expand Down
4 changes: 2 additions & 2 deletions docs/providers/cloudflare-workers/guide/quick-start.md
Expand Up @@ -56,13 +56,13 @@ You’ll need to redefine your environmental variables after each time you close

1. **Deploy the Service**

Use this when you have made changes to your Functions, Events or Resources in `serverless.yml` or you simply want to deploy all changes within your Service at the same time.
Use this when you have made changes to your Functions, Events or Resources in `serverless.yml` or you simply want to deploy all changes within your Service at the same time. If you've made changes to your routes since last deploying, the Serverless Framework will update them on the server for you.

```bash
serverless deploy
```

2. **Deploy the Function**
1. **Deploy the Function**

Use this to quickly upload and overwrite your function code, allowing you to develop faster.

Expand Down

0 comments on commit 0ec216a

Please sign in to comment.