You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concepts/debug.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ sidebar_position: 650
6
6
7
7
# Debug
8
8
9
-
Defang includes an AI-driven tool to help you debug your cloud applications. The AI assistant will use your service logs as well as the files in your project to help you identify and resolve issues.
9
+
Defang includes an AI-driven tool to help you debug your cloud applications. The AI agent will use your service logs as well as the files in your project to help you identify and resolve issues.
10
10
11
11
:::warning
12
-
The AI debugging assistant is currently in preview and is currently limited in its capabilities. We plan to expand the capabilities of the AI assistant in the future.
12
+
The AI debugging agent is currently in preview and is currently limited in its capabilities. We plan to expand the capabilities of the AI agent in the future.
description: Defang provides three deployment modes which allow you to balance cost and resiliency.
4
+
sidebar_position: 501
5
+
---
6
+
7
+
# Defang Deployment Modes
8
+
9
+
Defang provides three deployment modes: development, staging, and production. These modes allow you to balance cost and resiliency according to your needs.
10
+
11
+
***Development**: This mode is used for development and testing purposes. It typically involves less stringent resource allocations and may include debugging tools and verbose logging to aid in development.
12
+
***Staging**: This mode serves as a pre-production environment where applications are tested in conditions that closely mimic production. It helps in identifying issues that might not be apparent in the development environment.
13
+
***Production**: This mode is used for live deployments. It involves optimized configurations for performance, security, and reliability. Resource allocations are typically higher, and debugging tools are minimized to ensure stability.
14
+
15
+
## Deployment Mode Comparison
16
+
17
+
| Feature | Development | Staging | Production |
18
+
|-|-|-|-|
19
+
| Build Resources | Builds will be run with 2x vCPUs | Builds will be run with 2x vCPUs | Builds will be run with 4x vCPUs |
20
+
| Databases | Defang will provision resources optimized for burstable memory || Defang will provision resources optimized for production |
21
+
| Static Resources ||| Defang will provision a CDN |
22
+
| Deployment | Previous deployments will be spun down before new deployments are spun up. || Rolling updates will be used to deploy new versions. Defang will gradually replace services while maintaining at least the original number of replicas. |
23
+
| Logging | Logs retained for 1 day to save costs. || Logs retained for 30 days for compliance. |
24
+
| Networking ||| Defang will provision a NAT gateway. |
25
+
| DNS | Defang will provision shorter TTLs || Defang will provision longer TTLs |
Copy file name to clipboardExpand all lines: docs/concepts/generate.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,17 @@ sidebar_position: 100
6
6
7
7
# Generate
8
8
9
-
Defang includes an AI-driven assistant that translates natural language prompts to an outline for your project that you can then refine. The AI assistant is available through the [Defang CLI](../getting-started/installing.md).
9
+
Defang includes an AI-driven agent that translates natural language prompts to an outline for your project that you can then refine. The AI agent is available through the [Defang CLI](../getting-started/installing.md).
10
10
11
11
:::info
12
-
The AI assistant is currently in preview and only supports a limited set of prompts, varying in complexity. We plan to expand the capabilities of the AI assistant in the future.
12
+
The AI agent is currently in preview and only supports a limited set of prompts, varying in complexity. We plan to expand the capabilities of the AI agent in the future.
13
13
:::
14
14
15
-
We are working on expanding the range of supported prompts and improving the accuracy of the AI assistant. If you have any feedback or suggestions, please let us know by [opening an issue](https://github.com/DefangLabs/defang/issues/new).
15
+
We are working on expanding the range of supported prompts and improving the accuracy of the AI agent. If you have any feedback or suggestions, please let us know by [opening an issue](https://github.com/DefangLabs/defang/issues/new).
16
16
17
17
## Example Prompts
18
18
19
-
Here are some example prompts that the AI assistant can help you with:
19
+
Here are some example prompts that the AI agent can help you with:
20
20
21
21
```
22
22
A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: { "status": "OK" }. The /echo endpoint will echo back all request parameters in the response.
Copy file name to clipboardExpand all lines: docs/concepts/managed-storage/managed-postgres.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,9 @@ You can also set the following optional environment variables to configure the m
38
38
You can connect to the managed Postgres instance using the name of your service as the hostname, `POSTGRES_USER`, `POSTGRES_DB`, and `POSTGRES_PASSWORD` environment variables.
39
39
40
40
### Example
41
+
:::info
42
+
For a smoother experience with Defang, we recommend using Postgres 14 for your container images. This version provides easier access and improved usability.
43
+
:::
41
44
42
45
```yaml
43
46
app:
@@ -55,7 +58,7 @@ You can connect to the managed Postgres instance using the name of your service
55
58
# reference config variables by using ${<config name>}
@@ -69,6 +72,7 @@ You can connect to the managed Postgres instance using the name of your service
69
72
70
73
```
71
74
75
+
<!--
72
76
### Major Version Updating of Engine
73
77
74
78
To update the database engine you can simply update the image to a later version in your compose file and apply it via ```defang compose up --provider=aws```. In the example below, we change from Postgres 15 to 16.
Copy file name to clipboardExpand all lines: docs/faq.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,23 +13,47 @@ description: Frequently asked questions about Defang.
13
13
14
14
### Can I bring my own AWS or other cloud account?
15
15
16
-
- Yes! Please check out the [Defang BYOC](./concepts/defang-byoc.md) documentation for more information.
16
+
- Yes! Defang makes it easy to deploy your application to your own cloud account. Please check out the [Defang BYOC](./concepts/defang-byoc.md) documentation for more information.
17
17
18
18
### On AWS, can I deploy to services such as EC2, EKS, or Lambda?
19
19
20
20
- The current release includes support for containers only, deployed to ECS. We are still exploring how to support additional execution models such as VMs and functions-as-a-service. However, using our Pulumi provider, it is possible to combine Defang services with other native AWS resources.
21
21
22
22
### Can I access AWS storage services such as S3 or database services such as RDS? How?
23
23
24
-
- Yes, you can access whatever other resources exist in the cloud account you are using as a [Defang BYOC](./concepts/defang-byoc.md) Provider.
24
+
- Yes, you can access AWS services in the AWS Dashboard as you normally would when you are [deploying to your AWS account](./providers/aws) using Defang. In fact, you can access whatever other resources exist in the cloud account you are using for [Defang BYOC](./concepts/defang-byoc.md).
25
25
26
-
### Do you plan to support other clouds?
26
+
### Can I run production apps with Defang?
27
27
28
-
-While we currently support AWS as a [Defang BYOC](./concepts/defang-byoc.md) Provider, we plan to support other clouds in future releases, such as [Azure](./providers/azure.md) and [GCP](./providers/gcp.md).
28
+
-Yes! Defang makes it easy to deploy your app on production-ready infrastructure in your own cloud account. For example, you can deploy your app to AWS with `defang up --provider=aws --mode=production`. Check out your preferred cloud provider on [Defang BYOC](./concepts/defang-byoc.md).
29
29
30
-
### Can I run production apps with Defang?
30
+
### Does Defang support blue/green deployments?
31
+
32
+
- Defang does not currently support Blue/Green deploys, but it does support rolling updates with the `production` deployment mode. `defang up --mode=production`.
33
+
34
+
### Does Defang support rolling deployments?
35
+
36
+
- Yes! Defang supports rolling updates with the `production` deployment mode. `defang up --mode=production`.
37
+
38
+
### Can I cancel a deployment once it has started?
39
+
40
+
- No. Once a deployment has started, it cannot be canceled. However, you can always deploy a new version of your app which will replace the current deployment.
41
+
42
+
### Will deploying a new version of my app cause downtime?
43
+
44
+
- If you have deployed your application with the `--mode=production` flag, Defang will use the _production_ deployment mode. This mode will provision your app with multiple replicas and will perform a rolling update to ensure zero downtime. If you use another deployment mode, you may experience downtime during the deployment, as defang will not provision multiple replicas to save cost.
45
+
46
+
### Can I deploy multiple services at once?
47
+
48
+
- Yes! You can deploy multiple services at once by defining them in a single compose.yaml file. When you run `defang compose up`, Defang will deploy all the services defined in the file at once.
49
+
50
+
### Can I deploy a service that depends on another service?
51
+
52
+
- Defang does not currently support service dependencies. All services will be deployed simultaneously. Defang will however run multiple healthchecks before marking a service as healthy and spinning down any previously deployed services when using the `production` deployment mode.
53
+
54
+
### Do you plan to support other clouds?
31
55
32
-
-The [Defang Playground](./concepts/defang-playground.md) is meant for testing and trial purposes only. Deployment of productions apps with [Defang BYOC](./concepts/defang-byoc.md) is not yet supported and disallowed by the [Terms of Service](https://defang.io/terms-service.html). If you are interested in running production apps, please [contact us](https://defang.io/#Contact-us).
56
+
-While we currently support [AWS](./concepts/defang-byoc#aws)for production and [DigitalOcean](./concepts/defang-byoc#digitalocean) in preview, we plan to support other clouds in future releases, such as [GCP](./providers/gcp.md) and [Azure](./providers/azure.md).
33
57
34
58
### I'm having trouble running the binary on my Mac. What should I do?
1.[Deploy using Pulumi](/docs/tutorials/deploy-using-pulumi)
111
111
112
112
Choose the direction that seems the most interesting. If you have any questions, join the [Defang Discord](https://discord.gg/defang) and we'll be happy to help you out.
description: Overview of Defang, a radically simpler way to build, deploy, and optimize production-ready cloud apps.
4
+
description: Overview of Defang, a radically simpler way to develop, deploy, and debug production-ready cloud apps.
5
5
---
6
6
7
+
<iframewidth="560"height="315"src="https://www.youtube.com/embed/afglsBYieuc?si=iKgUX4ejz7AixxqQ"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
7
8
8
9
### What is Defang?
9
10
10
11
Defang is a radically simpler way for developers to develop, deploy, and debug their cloud applications. Defang enables you to easily author cloud application in any language, build and deploy to the cloud with a single command, and iterate quickly with AI-assisted tooling.
11
12
12
-
- The [Defang CLI](./getting-started/installing.md) includes an AI-driven assistant that translates natural language prompts to an outline for your project that you can then refine.
13
+
- The [Defang CLI](./getting-started/installing.md) includes an AI-driven agent that translates natural language prompts to an outline for your project that you can then refine.
13
14
- Defang can automatically build and deploy your project with a single command.
14
15
- If you’re new to Defang, you can try deploying to the [Defang Playground](./concepts/defang-playground.md), a hosted environment to learn to use Defang with non-production workloads.
15
16
- Once you’re ready, you can [deploy](./concepts/deployments.md) it to your own cloud account - we call this [Defang BYOC](./concepts/defang-byoc.md). Defang takes care of all the heavy lifting such as configuring networking, security, [observability](./concepts/observability.md) and all the other details that usually slow down the average cloud developer.
@@ -21,8 +22,8 @@ Defang provides a streamlined experience to develop, deploy, observe, and update
21
22
22
23
- Support for [various types of applications](./use-cases/use-cases.md): Web services and APIs, mobile app backends, ML services, hosting LLMs, etc.
23
24
- Support for your programming [language of choice](./samples.md): Node.js, Python, Golang, or anything else you can package in a Dockerfile.
24
-
- Built-in AI assistant to go [from natural language prompt to an outline project](./concepts/generate.md)
25
-
- Built-in AI assistant to help you [debug your cloud applications](./concepts/debug.md)
25
+
- Built-in AI agent to go [from natural language prompt to an outline project](./concepts/generate.md)
26
+
- Built-in AI agent to help you [debug your cloud applications](./concepts/debug.md)
"description": "Defang allows you to use your own cloud accounts to deploy your applications. Click on a link below to read documentation about specific providers."
Copy file name to clipboardExpand all lines: docs/providers/aws/aws.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Why should you use Defang with AWS? Defang allows you to easily create and manag
17
17
Getting started with the Defang BYOC AWS Provider is easy. The first step is to [authenticate your shell](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) with AWS as an admin user. The authenticated user should be an IAM admin because Defang will need permission to create resources and IAM roles in your account.
18
18
19
19
:::tip
20
-
If you have the aws CLI installed, you should be able to successfully run `aws sts get-caller-identity` and see your account ID.
20
+
If you have the AWS CLI installed, you should be able to successfully run `aws sts get-caller-identity` and see your account ID.
21
21
:::
22
22
23
23
Use the `--provider=aws` flag to tell the Defang CLI to use the AWS Provider or set the `DEFANG_PROVIDER` environment variable to `aws`.
0 commit comments