From 45b7c3178aecbad9ebfde643d5022ec569e2115f Mon Sep 17 00:00:00 2001 From: Jim Forsyth Date: Wed, 19 Jul 2017 19:06:27 +0100 Subject: [PATCH 1/3] services.deploy-info.md Be sure to 'cd' into the relevant service directory before running the 'deploy' command, otherwise you'll likely see the following error message: "Avoid the following error: "This command can only be run inside a service directory". --- docs/providers/aws/guide/services.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/providers/aws/guide/services.md b/docs/providers/aws/guide/services.md index dd96c4c24..2c7e4c1f1 100644 --- a/docs/providers/aws/guide/services.md +++ b/docs/providers/aws/guide/services.md @@ -160,7 +160,13 @@ Create this file and add event data so you can invoke your function with the dat When you deploy a Service, all of the Functions, Events and Resources in your `serverless.yml` are translated to an AWS CloudFormation template and deployed as a single CloudFormation stack. -To deploy a service, use the `deploy` command: +To deploy a service, first 'cd' into the relevant service directory: + +```bash +cd myService +``` + +Then use the `deploy` command: ```bash serverless deploy From 6dbb6061fa2e9219daa39cf086473dbdeb554bbd Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Tue, 15 Aug 2017 16:00:13 +0200 Subject: [PATCH 2/3] Update wording --- docs/providers/aws/guide/services.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/providers/aws/guide/services.md b/docs/providers/aws/guide/services.md index 2c7e4c1f1..d77cb5eb0 100644 --- a/docs/providers/aws/guide/services.md +++ b/docs/providers/aws/guide/services.md @@ -160,10 +160,10 @@ Create this file and add event data so you can invoke your function with the dat When you deploy a Service, all of the Functions, Events and Resources in your `serverless.yml` are translated to an AWS CloudFormation template and deployed as a single CloudFormation stack. -To deploy a service, first 'cd' into the relevant service directory: +To deploy a service, first `cd` into the relevant service directory: ```bash -cd myService +cd my-service ``` Then use the `deploy` command: From 3cd6fb1b92dfdd8ee99146eeb884345aa6f6364f Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Tue, 15 Aug 2017 16:02:17 +0200 Subject: [PATCH 3/3] Update other provider docs --- docs/providers/azure/guide/services.md | 8 +++++++- docs/providers/google/guide/services.md | 8 +++++++- docs/providers/openwhisk/guide/services.md | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/docs/providers/azure/guide/services.md b/docs/providers/azure/guide/services.md index e00dda5a0..1ab4bdbe6 100644 --- a/docs/providers/azure/guide/services.md +++ b/docs/providers/azure/guide/services.md @@ -115,7 +115,13 @@ When you deploy a Service, all of the Functions, and Events in your `serverless.yml` are translated into calls to the platform API to dynamically define those resources. -To deploy a service, use the `deploy` command: +To deploy a service, first `cd` into the relevant service directory: + +```bash +cd my-service +``` + +Then use the `deploy` command: ```bash serverless deploy diff --git a/docs/providers/google/guide/services.md b/docs/providers/google/guide/services.md index ccfd1239a..44d32d894 100644 --- a/docs/providers/google/guide/services.md +++ b/docs/providers/google/guide/services.md @@ -100,7 +100,13 @@ The `index.js` file contains your exported functions. When you deploy a Service, all of the Functions, and Events in your `serverless.yml` are translated into calls to the Google Cloud API to dynamically define those resources. -To deploy a service, use the `deploy` command: +To deploy a service, first `cd` into the relevant service directory: + +```bash +cd my-service +``` + +Then use the `deploy` command: ```bash serverless deploy diff --git a/docs/providers/openwhisk/guide/services.md b/docs/providers/openwhisk/guide/services.md index 563855927..ae8de4b02 100644 --- a/docs/providers/openwhisk/guide/services.md +++ b/docs/providers/openwhisk/guide/services.md @@ -107,7 +107,13 @@ Create this file and add event data so you can invoke your function with the dat When you deploy a Service, all of the Functions, Events and Resources in your `serverless.yml` are translated into calls to the platform API to dynamically define those resources. -To deploy a service, use the `deploy` command: +To deploy a service, first `cd` into the relevant service directory: + +```bash +cd my-service +``` + +Then use the `deploy` command: ```bash serverless deploy