mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Merge pull request #2273 from ashleybrown415/patch-1
Update 03-deploying-services.md
This commit is contained in:
commit
320eb5b6b6
@ -6,13 +6,13 @@ layout: Doc
|
||||
|
||||
# Deploying a service
|
||||
|
||||
Make sure that you're still in the service directory that we've created the service in before.
|
||||
Make sure you're still working in the same directory you created the service in.
|
||||
|
||||
Run `serverless deploy -v` to start the deployment process (make sure that the credentials for your provider are properly configured). This command will also print the progress during the deployment as we've configured the `verbose` mode.
|
||||
Run `serverless deploy -v` to start the deployment process (make sure that the credentials for your provider are properly configured). This command also prints the progress during the deployment, as we've configured the `verbose` mode.
|
||||
|
||||
Serverless will now deploy the whole service to the configured provider. It will use the default `dev` stage and `us-east-1` region.
|
||||
Serverless now deploys the whole service to the configured provider. It uses the default `dev` stage and `us-east-1` region.
|
||||
|
||||
You can change the default stage and region in your `serverless.yml` file by setting the `stage` and `region` properties inside a `provider` object as the following example shows:
|
||||
If you need to change the default stage and region, in your `serverless.yml` file, set the `stage` and `region` properties inside a `provider` object:
|
||||
|
||||
```yml
|
||||
# serverless.yml
|
||||
@ -24,21 +24,20 @@ provider:
|
||||
region: us-west-2
|
||||
```
|
||||
|
||||
After running `serverless deploy -v` you should see the progress of the deployment process in your terminal.
|
||||
A success message will tell you once everything is deployed and ready to use!
|
||||
After you run `serverless deploy -v`, the progress of the deployment process displays in your terminal.
|
||||
A success message tells you when everything is deployed and ready to use!
|
||||
|
||||
## Deploying to a different stage and region
|
||||
|
||||
Although the default stage and region is sufficient for our guide here you might want to deploy to different stages and
|
||||
regions later on. You could accomplish this easily by providing corresponding options to the `deploy` command.
|
||||
If you want to deploy to different stages and regions later on, provide corresponding options to the `deploy` command.
|
||||
|
||||
If you e.g. want to deploy to the `production` stage in the `eu-central-1` region your `deploy` command will look like
|
||||
For example, deploy to the `production` stage in the `eu-central-1` region by running a `deploy` command that looks like
|
||||
this: `serverless deploy --stage production --region eu-central-1`.
|
||||
|
||||
You can also check out the [deploy command docs](../03-cli-reference/02-deploy.md) for all the details and options.
|
||||
Check out the [deploy command docs](../03-cli-reference/02-deploy.md) for all the details and options.
|
||||
|
||||
## Conclusion
|
||||
|
||||
We've just deployed our service! Let's invoke the services function in the next step.
|
||||
You've just deployed your service! Let's invoke the services function in the next step.
|
||||
|
||||
[Next step > Invoking a function](./04-invoking-functions.md)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user