mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
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".
This commit is contained in:
parent
de6bebeea9
commit
45b7c3178a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user