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: blog/2023-06-29-Announcing-the-Private-Beta-for-the-DOP.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
@@ -12,7 +12,7 @@ We realize that improving on this state of affairs is a long journey. Today, we
12
12
13
13
**Try the Private Beta!**
14
14
15
-
To try the Private Beta, please go to [portal.defang.dev](https://portal.defang.dev) and register. We would love to have you kick the tires and give us your feedback! You can also check out our [documentation](https://docs.defang.io/docs/intro), [samples](https://docs.defang.io/docs/intro), and our [Github repository](https://github.com/DefangLabs).
15
+
To try the Private Beta, please go to [portal.defang.dev](https://portal.defang.dev) and register. We would love to have you kick the tires and give us your feedback! You can also check out our [documentation](https://docs.defang.io/docs/intro), [samples](https://docs.defang.io/docs/intro), and our [GitHub repository](https://github.com/DefangLabs).
Copy file name to clipboardExpand all lines: blog/2024-02-12-announcing-defang-public-beta.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
@@ -16,7 +16,7 @@ You can learn more about Defang [here](https://docs.defang.io/docs/intro). Also
16
16
17
17
**Try the Public Beta!**
18
18
19
-
To try the Public Beta, please go to [defang.io](http://defang.io) and click on [Download](https://github.com/DefangLabs/defang/releases/latest) to download the CLI and [get started](https://docs.defang.io/docs/getting-started). We would love to have you kick the tires and give us your feedback! Once you sign up you’ll receive an invitation to our Slack support channel in email. You are also welcome to file [Github issues here](https://github.com/DefangLabs/defang/issues).
19
+
To try the Public Beta, please go to [defang.io](http://defang.io) and click on [Download](https://github.com/DefangLabs/defang/releases/latest) to download the CLI and [get started](https://docs.defang.io/docs/getting-started). We would love to have you kick the tires and give us your feedback! Once you sign up you’ll receive an invitation to our Slack support channel in email. You are also welcome to file [GitHub issues here](https://github.com/DefangLabs/defang/issues).
Copy file name to clipboardExpand all lines: blog/2024-03-20-dev-environments.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,12 @@ We want it to be easy for you to try Defang with as little friction as possible,
15
15
16
16
## Codespaces
17
17
18
-
If you want to get started with Codespaces, you can just fork [this repo](https://github.com/DefangLabs/github-codespace). It comes with the Defang CLI pre-installed so you can start playing with it immediately. It's setup using the Defang CLI [Dev Container Feature](https://github.com/DefangLabs/devcontainer-feature/pkgs/container/devcontainer-feature%2Fdefang-cli).
18
+
If you want to get started with Codespaces, you can just fork [this repo](https://github.com/DefangLabs/github-codespace). It comes with the Defang CLI pre-installed so you can start playing with it immediately. It's set up using the Defang CLI [Dev Container Feature](https://github.com/DefangLabs/devcontainer-feature/pkgs/container/devcontainer-feature%2Fdefang-cli).
19
19
20
20
## Dev Containers
21
21
22
22
[Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) are a cool way to provision and configure development environments and share that configuration with other people you are working with. It's a spec that is supported by [VS Code](https://code.visualstudio.com/docs/devcontainers/containers), [Visual Studio](https://devblogs.microsoft.com/cppblog/dev-containers-for-c-in-visual-studio/), the JetBrains IDEs like [IntelliJ](https://www.jetbrains.com/help/idea/connect-to-devcontainer.html) and [PyCharm](https://www.jetbrains.com/help/pycharm/connect-to-devcontainer.html), [DevPod](https://devpod.sh/docs/developing-in-workspaces/devcontainer-json) and others.
23
23
24
-
## GitPod
24
+
## Gitpod
25
25
26
-
GitPod is another Cloud IDE, a bit like GitHub Codespaces. If prefer GitPod, you can try Defang in a GitPod environment by using [this repo](https://github.com/DefangLabs/gitpod-workspace/tree/main).
26
+
Gitpod is another Cloud IDE, a bit like GitHub Codespaces. If prefer Gitpod, you can try Defang in a Gitpod environment by using [this repo](https://github.com/DefangLabs/gitpod-workspace/tree/main).
Copy file name to clipboardExpand all lines: blog/2024-03-28-slackbot-sample.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
@@ -47,7 +47,7 @@ Now that we have everything set up, let's dive into the deployment process. Foll
47
47
2. **Deploy the Slackbot:** Use the Defang CLI's `defang compose up` command to deploy.
48
48
49
49
## Usage
50
-
With your Slackbot up and running, let's explore how to make the most of it. Simply send a POST request to the `/` endpoint with a JSON body containing the message you want to post to the Slack channel. Popular tools like cURL or Postman can help you send the request:
50
+
With your Slackbot up and running, let's explore how to make the most of it. Let's send a POST request to the `/` endpoint with a JSON body containing the message you want to post to the Slack channel. Popular tools like cURL or Postman can help you send the request:
Copy file name to clipboardExpand all lines: blog/2024-05-01-may-product-updates.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
@@ -11,7 +11,7 @@ Hey folks! There is a lot going on at Defang and we're excited to share our late
11
11
12
12
## npx defang
13
13
14
-
We know a lot of you are using Defang for the first time. To make it easier to get started, we've added a new way to install the Defang CLI. Now you can use npx to run the CLI without installing it globally. Just run:
14
+
We know a lot of you are using Defang for the first time. To make it easier to get started, we've added a new way to install the Defang CLI. Now you can use npx to run the CLI without installing it globally by running:
Copy file name to clipboardExpand all lines: blog/2024-11-12-hard-lessons-from-hardware.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
@@ -41,7 +41,7 @@ This is what the Flask server looked like on my computer as it got pinged:
41
41
42
42
Hooray! Once everything was working, It was time to deploy my Flask code as a cloud service so I could access it from any computer, not just my own. Deployment usually takes several hours due to configuring a ton of cloud provider settings. But I ain’t got time for that. Instead, I used Defang to deploy it within minutes, which took care of all that for me. Saved me a lot of time and tears.
43
43
44
-
Here’s the Flask deployment on Defang’s portal view:
44
+
Here’s the Flask deployment on Defang’s Portal view:
Copy file name to clipboardExpand all lines: blog/2024-12-04-launch-week.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,13 @@ import { Button } from '@mui/material';
27
27
28
28
At **Defang**, we’re enabling developers go from **idea to code to deployment 10x faster**. We’re thrilled to announce that **Defang V1** is officially launching during our action-packed **Launch Week**, running from **December 4–10, 2024**! This marks a major milestone as we officially release the tools and features developers have been waiting for.
29
29
30
-
## **What’s New in V1?**
30
+
## **What’s New in Defang CLI V1?**
31
31
32
32
**Defang is a powerful tool that lets you easily develop, deploy, and debug production-ready cloud applications**. With Defang V1, we continue to deliver on our vision to make **cloud development effortlessly simple and portable, with the ability to develop once and deploy anywhere**. Here’s what’s included in this milestone release:
33
33
34
34
-**Production-Ready Support for AWS**
35
35
36
-
Seamlessly deploy and scale with confidence on [AWS](https://docs.defang.io/docs/providers/aws). Defang is now [WAFR](https://aws.amazon.com/premiumsupport/business-support-well-architected/)-compliant, assuring that your deployments confirm to all the best-practices for AWS deployments. Defang is now officially part of the [AWS Partner Network](https://aws.amazon.com/partners/).
36
+
Seamlessly deploy and scale with confidence on [AWS](https://docs.defang.io/docs/providers/aws). Defang is now [WAFR](https://aws.amazon.com/premiumsupport/business-support-well-architected/)-compliant, assuring that your deployments conform to all the best-practices for AWS deployments. Defang is now officially part of the [AWS Partner Network](https://aws.amazon.com/partners/).
37
37
38
38
-**New - Google Cloud Platform ([GCP](https://docs.defang.io/docs/providers/gcp)) in Preview**
39
39
@@ -51,7 +51,7 @@ As we move into V1, we are also rolling out our differentiated product tiers, al
51
51
52
52
We’ve lined up an exciting week of activities to showcase the power of **Defang** and bring together our growing community:
53
53
54
-
-**December 4: Vancouver CDW x AWS re:InventWatchParty**
54
+
-**December 4: Vancouver CDW x AWS re:InventWatch Party**
55
55
56
56
Join us at the Vancouver [CDW x AWS re:Invent Watch Party](https://lu.ma/1r0zsw76), where we will have a booth showcasing Defang’s capabilities and AWS integration. Stop by to learn more about Defang and see a live demo from the Defang dev team.
Copy file name to clipboardExpand all lines: docs/concepts/accounts.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
@@ -16,7 +16,7 @@ Eventually, billing and payment information will be associated with your account
16
16
17
17
## Creating an Account
18
18
19
-
To create an account, simply login to Defang and accept the [terms of service](https://defang.io/terms-service.html) using the [CLI](/docs/concepts/authentication.md).
19
+
To create an account, login to Defang and accept the [terms of service](https://defang.io/terms-service.html) using the [CLI](/docs/concepts/authentication.md).
20
20
21
21
At the moment, the only way to authenticate with Defang is through GitHub. We plan to offer other authentication providers in the future.
Copy file name to clipboardExpand all lines: docs/concepts/configuration.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,11 @@ sidebar_position: 225
6
6
7
7
# Configuration
8
8
9
-
Defang allows you to configure your application using environment variables. You can set environment variables in your [`compose.yaml` file](./compose.md), or in your [Pulumi program](./pulumi.md). Using Pulumi gives you the advantage of being able to manage your environment variables across different environments using Pulumi stacks.
9
+
Defang allows you to configure your application using environment variables. You can set environment variables in your [`compose.yaml` file](./compose.md), or in your [Pulumi program](#using-config-with-pulumi).
10
10
11
-
:::tip Sample
12
-
You can find a sample of how to set environment variables with Pulumi [here](https://github.com/DefangLabs/defang/tree/main/samples/nodejs/remix-aiven-postgres).
13
-
:::
14
-
15
-
# Sensitive Config aka Secrets
11
+
# Sensitive Config (aka Secrets)
16
12
17
-
The Defang CLI allows you to securely store sensitive information such as API keys, passwords, and other credentials. To do so just run:
13
+
The Defang CLI allows you to securely store sensitive information such as API keys, passwords, and other credentials. To do so, run:
18
14
19
15
```bash
20
16
# Set a configuration value called API_KEY
@@ -44,6 +40,10 @@ services:
44
40
45
41
Use the `defang config` command of the Defang CLI to manage the values.
46
42
43
+
:::tip
44
+
You can find a sample of how to set sensitive config values [here](https://github.com/DefangLabs/samples/tree/main/samples/nodejs-openai).
45
+
:::
46
+
47
47
## Interpolation
48
48
49
49
Environment variables are set within the *environment* section of a service in a `compose.yaml` file. Any variables declared here will become available within the service container.
@@ -62,18 +62,24 @@ In the example above, if we assume the value of the configuration variable ***US
62
62
63
63
During `defang compose up` all variable references will be replaced with the actual value and made available in the container. If any referenced variable is not found the `defang compose up` command will be canceled.
64
64
65
+
## Using Config with Pulumi
66
+
In Defang, using config with [Pulumi](./pulumi.md) gives you the advantage of being able to manage your environment variables across different environments using Pulumi stacks.
67
+
68
+
:::tip
69
+
You can find a sample of how to set environment variables with Pulumi [here](https://github.com/DefangLabs/samples/tree/main/samples/pulumi-remix-postgres).
70
+
:::
71
+
65
72
## Connecting Services
66
73
67
74
If you have created a service before a secret you can connect it by running the `defang compose start` command if using the [`defang compose` workflow](./compose.md). If you are using the [Pulumi-based workflow](./pulumi.md) you will need to redeploy using Pulumi.
68
75
69
-
:::tip Sample
70
-
You can find a sample of how to set sensitive config values [here](https://github.com/DefangLabs/defang/tree/main/samples/nodejs/ChatGPT%20API).
71
-
:::
72
-
73
76
## Providers
74
77
75
78
Here are the different ways sensitive config values are stored depending on the provider you are using:
Copy file name to clipboardExpand all lines: docs/concepts/debug.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,30 @@ 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 agent 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 in the CLI (command-line interface) 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
-
:::warning
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.
11
+
:::info
12
+
Defang has another AI-driven tool called [`generate`](/docs/concepts/generate).
13
13
:::
14
14
15
-
## How it works
15
+
## How It Works
16
+
17
+
Here is a typical workflow in the [Defang CLI](/docs/getting-started) that will automatically run the AI debugger tool:
18
+
19
+
1. When you deploy a project with Defang (i.e. `defang compose up`), the CLI will wait for all services' statuses to switch to healthy.
20
+
21
+
2. If any service fails to deploy, the AI debugger will kick in and ask for permission.
22
+
23
+
3. The AI agent will analyze the logs and files in your project to identify the issue(s).
24
+
25
+
4. Then, it will provide you with the suggested fix(es) in the terminal.
26
+
27
+
:::tip
28
+
The AI debugger will not change your files. Instead, it will show you a suggestion, and it is up to you if you want to use it in your code.
29
+
:::
16
30
17
-
When you deploy a project with Defang, the CLI will wait for all services' statuses to switch to healthy. If any service fails to deploy, the AI debugger will kick in. It will analyze the logs and files in your project to identify the issue and provide you with a suggested fix. **The AI debugger will not change your files.**
31
+
The AI debugger only kicks in when any service in a project fails to deploy. This could be because of a build failure, healthchecks failing, or a variety of other issues.
18
32
19
33
:::info
20
-
The AI debugger only kicks in when any service in a project fails to deploy. This could be because of a build failure, healthchecks failing, or a variety of other issues. At the moment, we do not offer any way to trigger the AI debugger manually.
34
+
The AI debugger only kicks in when any service in a project fails to deploy. At the moment, we do not offer any way to trigger the AI debugger manually.
0 commit comments