Skip to content

Commit 4fe36af

Browse files
committed
Merge branch 'main' of https://github.com/DefangLabs/defang-docs into do-docs
2 parents 2ce62f7 + 46eabcd commit 4fe36af

39 files changed

+643
-286
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
deploy:
14+
environment: github-pages
1415
permissions:
1516
# This is required to allow the GH actions bot to commit to the `gh-pages` branch
1617
contents: write
@@ -82,6 +83,12 @@ jobs:
8283
user_email: 41898282+github-actions[bot]@users.noreply.github.com
8384
cname: docs.defang.io
8485

86+
87+
# Notify docs chatbot of new docs with curl command
88+
- name: Notify docs chatbot of new docs
89+
run: |
90+
curl -X POST https://ask.defang.io/trigger-rebuild?token=${{ secrets.CHATBOT_TOKEN }}
91+
8592
8693
- name: Notify Slack of Action Failures
8794
uses: ravsamhq/[email protected]

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,31 @@ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern sta
55
### Installation
66

77
```
8-
$ npm
8+
$ npm install
99
```
10-
11-
### Local Development
10+
Make sure that you've cloned the `defanglabs/defang` repo and `defanglabs/samples` repo in sibling directories.
1211

1312
```
14-
$ npm serve
13+
$ git clone https://github.com/DefangLabs/defang.git ../defang
14+
$ git clone https://github.com/DefangLabs/samples.git ../samples
1515
```
1616

17-
This command starts a local development server and opens up a browser window.
18-
1917
### Build
2018

2119
```
22-
$ npm build
20+
$ npm run build
2321
```
2422

2523
This command generates static content into the `build` directory and can be served using any static contents hosting service.
2624

25+
### Local Development
26+
27+
```
28+
$ npm run start
29+
```
30+
31+
This command starts a local development server and opens up a browser window.
32+
2733
### Deployment
2834

2935
Using SSH:

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
slug: may-2024-product-update
3-
title: April 2024 Product Update
4-
tags: [Cloud, NoDevOps, BYOC, AWS ECS, defang compose up]
3+
title: April 2024 Defang Compose Update
4+
tags: [Cloud, NoDevOps, BYOC, AWS ECS, defang compose up, Defang Compose Update]
55
author: Defang Team
66
---
77

8+
![Defang Compose Update](/img/defang-compose-update.webp)
9+
810
Hey folks! There is a lot going on at Defang and we're excited to share our latest product updates with you. Over the last month, we've been working hard to improve the Defang system and make it even easier for you to deploy your applications. Here's a quick overview of what we've been up to:
911

1012
## npx defang

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
slug: june-2024-product-update
3-
title: May 2024 Product Update
4-
tags: [Cloud, NoDevOps, BYOC, Playground, Load Testing, ACME, Managed Redis, Kaniko, Postgres, ECS]
3+
title: May 2024 Defang Compose Update
4+
tags: [Cloud, NoDevOps, BYOC, Playground, Load Testing, ACME, Managed Redis, Kaniko, Postgres, ECS, Defang Compose Update]
55
author: Defang Team
66
---
77

8+
![Defang Compose Update](/img/defang-compose-update.webp)
9+
810
Hey folks! We’re back with another exciting update about Defang. Our team has been working hard to bring you new features and improvements so you can get deploying faster. Here’s a rundown of what we’ve been up to this month:
911

1012

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
slug: july-2024-product-update
3-
title: June 2024 Product Update
4-
tags: [Cloud, NoDevOps, BYOC, Windows, Managed Redis, CLI]
3+
title: June 2024 Defang Compose Update
4+
tags: [Cloud, NoDevOps, BYOC, Windows, Managed Redis, CLI, Defang Compose Update]
55
author: Defang Team
66
---
77

8+
![Defang Compose Update](/img/defang-compose-update.webp)
9+
810
Hey folks! We've got another batch of updates to share with you about what the Defang team has been working on over the past month. We're committed to improving your deployment experience, so let's take a look at what's new.
911

1012
## Windows Experience Improvements

blog/2024-07-31-july-product-updates-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
slug: 2024-07-31-product-update
3-
title: July 2024 Product Update
4-
tags: [Cloud, NoDevOps, BYOC, CLI, AI, Debugging]
3+
title: July 2024 Defang Compose Update
4+
tags: [Cloud, NoDevOps, BYOC, CLI, AI, Debugging, Defang Compose Update]
55
author: Defang Team
66
---
77

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
slug: 2024-08-31-product-update
3+
title: August 2024 Defang Compose Update
4+
tags:
5+
[
6+
Cloud,
7+
NoDevOps,
8+
BYOC,
9+
Digital Ocean,
10+
CLI,
11+
AI,
12+
Debugging,
13+
Defang Compose Update,
14+
]
15+
author: Defang Team
16+
---
17+
import { Button } from '@mui/material';
18+
19+
20+
![Defang Compose Update](/img/defang-compose-update.webp)
21+
22+
Wow - what a month of August it has been! We made some big strides of progress on our vision of providing a radically simpler way to Develop, Deploy, and Debug _portable_ cloud applications.
23+
24+
## Ask Defang
25+
26+
We've just rolled out an initial version of Ask Defang, our AI-driven documentation assistant that can help you navigate the Defang docs and get deploying faster. It's deployed with Defang and using a combination of embeddings run on a GPU-powered service, Defang managed Redis, and OpenAI APIs.
27+
28+
Check it out [here](/docs/ask) or head to [ask.defang.io](https://ask.defang.io) to get started!
29+
30+
## Enhanced Platform Symmetry
31+
32+
We've been hard at work improving the symmetry between our Playground and BYOC environments as well as `docker compose up` vs `defang compose up` to provide a more seamless experience. You can now use multiple compose files and in BYOC the CLI will subscribe to events to monitor service health during deployments.
33+
34+
## AI Features and Debugging Improvements
35+
36+
We've been working on several AI-driven enhancements to make your development process even more efficient. We've addressed key issues, such as file generation failures due to parsing errors and invalid compose files. Also, our Debug Assistant is now more robust, handling context size limits better than before.
37+
38+
---
39+
40+
![Workshop](/img/august-update/workshop.jpg)
41+
42+
## August Events
43+
44+
This month, we hosted an in-person [workshop](https://www.linkedin.com/feed/update/urn:li:activity:7233915052083310595/) to get more developers acquainted with Defang and simplify their cloud app journey. You can view the presentation [here](https://s.defang.io/cloudjam2024). We also held the first-ever DevTools Vancouver [meetup](https://www.linkedin.com/posts/defanglabs_devtoolsmeetup-activity-7234599713751060483-zQsg?utm_source=share&utm_medium=member_desktop), bringing together local DevTool founders, engineers, and enthusiasts.
45+
46+
Looking ahead, we’re excited to collaborate with [MLH](https://mlh.io/), [Hack the North](https://hackthenorth.com/), [LangaraHacks](https://lhacks.langaracs.ca/), and more in September. If you'd like to attend any of these events, be sure to sign up!
47+
48+
---
49+
50+
<img src="/img/august-update/townhall.png" alt="TownHall" style={{ width: 300 }} />
51+
52+
## Townhall
53+
54+
Mark your calendars! If you’re eager to learn more about what’s coming next, join us for our Townhall on September 25th. We’ll be sharing our future roadmap, answering your questions, and gathering your feedback.
55+
56+
<Button href="https://lu.ma/9d8irae8" variant="contained" size="large" target="_blank">
57+
Register here!
58+
</Button>
59+
60+
---
61+
62+
## Roadmap
63+
64+
We're working on a number of new features to make Defang even better. Here are some of the most exciting ones:
65+
66+
- **Managed Postgres**: We're working on getting Defang to provision managed Postgres services for you, so you can easily store and query data in your applications.
67+
- **Digital Ocean BYOC**: We're working on adding Digital Ocean BYOC to give you even more choice over where you deploy your applications.
68+
69+
---
70+
71+
We’re excited to keep enhancing Defang to make it the easiest way for you to Develop, Deploy, and Debug cloud applications. Stay tuned for more updates next month! 🚀

docs/ask.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Ask Defang"
3+
description: This is a chatbot that is trained on defang documentation and designed to answer questions
4+
sidebar_position: 900
5+
className: "no-title-page"
6+
---
7+
8+
<iframe
9+
src="https://ask.defang.io"
10+
style={{
11+
width: "100%", // Assuming the sidebar width is 250px
12+
height: "calc(100vh - 60px)", // Assuming the header height is 60px
13+
minHeight: "600px",
14+
border: "none",
15+
marginLeft: "0px",
16+
marginRight: "0px",
17+
display: "block" // Ensures proper centering
18+
}}>
19+
</iframe>

docs/concepts/compose.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You might be familiar with `docker-compose.yml` files, now known as the [Compose
1212

1313
You can define your [services](./services.md) using a `compose.yaml` file in the root of your project, or use the [`defang generate` command](../tutorials/generate-new-code-using-ai.mdx) to generate one (along with other resources). This file is used to define your application's services and how they run. You can edit this file to add more services or change the configuration of existing services.
1414

15-
When you run `defang up`, Defang will read your `compose.yaml` file and [deploy](./deployments.md) the services named in that file to the cloud.
15+
When you run `defang compose up`, Defang will read your `compose.yaml` file and [deploy](./deployments.md) the services named in that file to the cloud.
1616

1717
## Service Name Resolution
1818

@@ -40,5 +40,5 @@ secrets:
4040
```
4141
4242
:::info Configuration & Secrets
43-
Read more about configuration in the [configuration page](./configuration.md) and about secrets in the [secrets page](./configuration.md).
44-
:::
43+
Read more about configuration in the [configuration page](./configuration.md).
44+
:::

docs/concepts/configuration.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,25 @@ defang config set API_KEY
2323

2424
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.
2525

26-
```ts
26+
```yaml
2727
services:
2828
service1:
2929
image: image1:latest
3030
environment:
3131
- API_KEY
3232
```
3333
34+
You can also use this syntax:
35+
36+
37+
```yaml
38+
services:
39+
service1:
40+
image: image1:latest
41+
environment:
42+
API_KEY:
43+
```
44+
3445
Use the `defang config` command of the Defang CLI to manage the values.
3546

3647
## Connecting Services
@@ -45,4 +56,4 @@ You can find a sample of how to set sensitive config values [here](https://githu
4556

4657
Here are the different ways sensitive config values are stored depending on the provider you are using:
4758

48-
* [AWS](../providers/aws.md#secrets)
59+
* [AWS](../providers/aws/aws.md#secrets)

0 commit comments

Comments
 (0)