-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new documentation files for building, deploying, monitoring, and …
…updating services
Showing
8 changed files
with
85 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
sidebar_position: 300 | ||
title: Build & Deploy Services | ||
description: Build and deploy services with Defang. | ||
--- | ||
|
||
|
||
# Build and Deploy Services | ||
|
||
Defang supports various ways of creating and deploying services to the cloud. The following tutorials dive into each one in more detail: | ||
|
||
1. [Create an outline using AI](../tutorials/generate-new-code-using-ai.mdx) | ||
2. [Build and deploy your code](../tutorials/deploy-code-compose.mdx) | ||
3. [Deploy an existing container](../tutorials/deploy-container-using-the-cli.mdx) | ||
4. [Deploy using Pulumi](../tutorials/deploy-using-pulumi.mdx) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
docs/getting-started/installing-the-cli.md → docs/getting-started/installing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
sidebar_position: 400 | ||
title: Monitor Services | ||
description: Monitor services with Defang. | ||
--- | ||
|
||
# Monitor a Service | ||
|
||
By default, all the output (stdout and stderr) from your app is logged. You can view these logs in real-time. You can view logs for all your services, one service, or even one specific deployment of a service. | ||
|
||
- From the CLI: | ||
|
||
```tsx | ||
defang tail --name service1 | ||
``` | ||
|
||
- From the Defang Portal: | ||
|
||
[https://portal.defang.dev/](https://portal.defang.dev/) | ||
|
||
|
||
:::info | ||
* To learn more about observability in Defang, check out the [observability page](../concepts/observability.md). | ||
* Note that the Defang Portal only displays services deployed to Defang Hosted. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_position: 500 | ||
title: Update Services | ||
description: Update services with Defang. | ||
--- | ||
|
||
# Update Services | ||
|
||
To update your app (for example, updating the base image of your container, or making changes to your code) you can run the `defang compose up` command and it will build and deploy a new version with zero downtime. Your current version of the service will keep running and handling traffic while the new version is being built and deployed. Only after the new version passes the health checks and accepts traffic will the older version be stopped. | ||
|
||
:::info | ||
If you are using [compose files](../concepts/compose.md) to define your services, you can add/remove services, make changes to code, etc. When you run `defang compose up`, the update will be diffed against the current state and any necessary changes will be applied to make the current state match the desired state. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters