Skip to content

Commit fb0f82d

Browse files
committed
Merge branch 'main' into RAG-deployment
2 parents fced8a2 + 83aeaa0 commit fb0f82d

21 files changed

+205
-49
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,8 @@ jobs:
5959
with:
6060
go-version: "1.21"
6161

62-
- name: Generate CLI docs
63-
run: go run main.go ./tmp
64-
working-directory: defang/src/cmd/gendocs
65-
66-
- name: Copy CLI docs to current repository
67-
run: cp -r ./defang/src/cmd/gendocs/tmp/* ./docs/cli
68-
69-
- name: Prep CLI docs
70-
run: npm run prep-cli-docs
71-
72-
- name: Prep Samples
73-
run: npm run prep-samples
62+
- name: Pre-build
63+
run: npm run prebuild
7464

7565
- name: Build website
7666
run: npm run build
@@ -93,3 +83,12 @@ jobs:
9383
cname: docs.defang.io
9484

9585

86+
- name: Notify Slack of Action Failures
87+
uses: ravsamhq/[email protected]
88+
if: ${{ always() && github.ref_name == 'main' }}
89+
with:
90+
status: ${{ job.status }}
91+
notify_when: "failure"
92+
notification_title: "{workflow} is failing"
93+
env:
94+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFIER_WEBHOOK_URL }}

.github/workflows/test-deploy.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,8 @@ jobs:
4040
with:
4141
go-version: "1.21"
4242

43-
- name: Generate CLI docs
44-
run: go run main.go ./tmp
45-
working-directory: defang/src/cmd/gendocs
46-
47-
- name: Copy CLI docs to current repository
48-
run: cp -r ./defang/src/cmd/gendocs/tmp/* ./docs/cli
49-
50-
- name: Prep CLI docs
51-
run: npm run prep-cli-docs
52-
53-
- name: Prep Samples
54-
run: npm run prep-samples
43+
- name: Pre-build
44+
run: npm run prebuild
5545

5646
- name: Test build website
5747
run: npm run build

blog/2024-03-28-slackbot-sample.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tags: [Cloud, NoDevOps, BYOC, AWS ECS, defang compose up, Slack API]
55
author: Raphaël Titsworth-Morin
66
---
77

8-
Hey folks! Today, I'm going to share one of our code samples that will show you how to deploy a simple Slack bot. If you're looking to connect a cloud service to Slack to publish status updates, or something else like that, this should help you get started. We'll walk through a step-by-step process of writing a Go program using the [github.com/slack-go/slack](github.com/slack-go/slack) library to interact with the Slack API and easily deploy it using Defang.
8+
Hey folks! Today, I'm going to share one of our code samples that will show you how to deploy a simple Slack bot. If you're looking to connect a cloud service to Slack to publish status updates, or something else like that, this should help you get started. We'll walk through a step-by-step process of writing a Go program using the [github.com/slack-go/slack](https://github.com/slack-go/slack) library to interact with the Slack API and easily deploy it using Defang.
99

1010
## Prerequisites
1111

@@ -57,4 +57,3 @@ curl 'https://raphaeltm-bot--8080.prod1.defang.dev/' \
5757

5858
## Takeaways
5959
Congratulations! You've successfully deployed a Slackbot using Defang. If you deployed this as an internal service, you could use it to send status updates, alerts, or other important messages to your team. The possibilities are endless!
60-

blog/2024-05-01-may-product-updates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: may-2024-product-update
3-
title: May 2024 Product Update
3+
title: April 2024 Product Update
44
tags: [Cloud, NoDevOps, BYOC, AWS ECS, defang compose up]
55
author: Defang Team
66
---

blog/2024-06-01-june-product-updates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: june-2024-product-update
3-
title: June 2024 Product Update
3+
title: May 2024 Product Update
44
tags: [Cloud, NoDevOps, BYOC, Playground, Load Testing, ACME, Managed Redis, Kaniko, Postgres, ECS]
55
author: Defang Team
66
---

blog/2024-07-01-july-product-updates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: july-2024-product-update
3-
title: July 2024 Product Update
3+
title: June 2024 Product Update
44
tags: [Cloud, NoDevOps, BYOC, Windows, Managed Redis, CLI]
55
author: Defang Team
66
---
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
slug: 2024-07-31-product-update
3+
title: July 2024 Product Update
4+
tags: [Cloud, NoDevOps, BYOC, CLI, AI, Debugging]
5+
author: Defang Team
6+
---
7+
8+
![Defang Compose Update](/img/defang-compose-update.webp)
9+
10+
Hey folks! We can’t believe a month has gone by already, time flies when you’re having fun! We continued to make progress on our vision of providing a radically simpler way to Develop, Deploy, and Debug cloud applications. In July, we spent time on a couple of key areas:
11+
12+
1. As our user-base grows, we wanted to make sure we’re able to scale our [Playground](https://docs.defang.io/docs/concepts/defang-playground) environment to be able to handle the load. This involved being able to shard the workload across multiple ALBs and being able to dynamically move some workloads across shards where possible. With these changes, we are now able handle a large number of concurrent users comfortably. The only noticeable change in behavior you would see is that Defang will now ask you to “`compose down`” your previous project before you are able to deploy a new project on Playground.
13+
14+
2. The major news this month was the introduction of our “`debug`” functionality. The motivation for this feature was that while the Defang experience is amazing when everything goes smoothly, we saw users (including our own interns who are helping write all those [samples](https://docs.defang.io/docs/samples)) struggle when they hit an error. The underlying reason for the error could come from a variety of sources: an error in the developer’s application (including in their Dockerfile or Compose file), an issue in the way Defang is processing the application, or an issue in the underlying cloud platform (currently, AWS). To the developer, it is often not obvious what the issue is or how to fix it. That got us thinking how we could make this debugging experience “radically simpler” and thus the idea for `defang debug` was born.
15+
16+
Now (with CLI v0.5.37 if your application encounters an error that leads to a failed deployment, a failed health-check, or a run-time error, Defang will automatically detect the issue. It will then offer to help you debug it by running the `defang debug` command. If you choose to proceed, Defang will apply an LLM model to try to determine the precise cause of the error, with the context of your application source, logs, error code etc. And it will try to come up with one or more actionable insights on how to fix the error. For an example, see the case below:
17+
18+
19+
20+
Behind the scenes, Defang is having a conversation on your behalf with the LLM to narrow down to the cause of the error. We would love for you to try the `debug` feature and give us your feedback so we can improve it further. One future improvement already on our list is the ability to, with user consent, automatically apply a chosen fix and re-try. We are also looking for way to improve the range of failures we are able to diagnose successfully.
21+
22+
## Townhall
23+
24+
If you're excited about what's coming next and want to hear more about our vision for the future, join us for our Townhall on August 21st. We'll be sharing more about our roadmap and what we're working on next. We'll also be making sure to take time to answer any questions you have, hear your feedback, and learn more about what you want from Defang!
25+
26+
**[Register here](https://lu.ma/rlj13eq5)**
27+
28+
---
29+
30+
We’re excited to keep improving Defang to make it the easiest way for you to Develop, Deploy, and Debug cloud application. Stay tuned for more updates next month.
31+

docs/concepts/configuration.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ You can find a sample of how to set environment variables with Pulumi [here](htt
1414

1515
# Sensitive Config aka Secrets
1616

17-
The Defang CLI allows you to securely store sensitive information such as API keys, passwords, and other credentials.
17+
The Defang CLI allows you to securely store sensitive information such as API keys, passwords, and other credentials. To do so just run:
18+
19+
```bash
20+
# Set a configuration value called API_KEY
21+
defang config set API_KEY
22+
```
1823

1924
You can use sensitive config by specifying them in the `environment` section of a service in a `compose.yaml` file without any value, or by specifying an environment key with a `null` value in your Pulumi code.
2025

docs/concepts/debug.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Debug
3+
description: Defang uses AI to help you debug your cloud applications.
4+
sidebar_position: 650
5+
---
6+
7+
# Debug
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.
10+
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.
13+
:::

docs/concepts/ai.md renamed to docs/concepts/generate.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
2-
title: AI
3-
description: How Defang uses AI to help you build and deploy your cloud applications.
2+
title: Generate
3+
description: Defang uses AI to help you generate a starting point for your cloud applications.
44
sidebar_position: 100
55
---
66

7-
# AI
8-
7+
# Generate
98

109
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).
1110

1211
:::info
13-
The AI assistant is currently in beta and only supports a limited set of prompts. We plan to expand the capabilities of the AI assistant in the future.
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.
1413
:::
1514

1615
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).
@@ -38,3 +37,9 @@ A simple next.js app that serves a static page
3837
```
3938
A simple api with a single route built on express
4039
```
40+
41+
**An example of a more complex prompt**
42+
43+
```
44+
A service that uses bullmq and redis. The compose file should also include a redis service. The code should setup a queue. It should also expose three endpoints with express: one to add a job to the queue, another to check how many tasks are in the queue, and a last one that runs on / which is just a healthcheck. The code should also include a worker that processes the queue by logging what's in each task. Use environment variables to configure the redis connection. No password.
45+
```

0 commit comments

Comments
 (0)