Skip to content

Commit 6152603

Browse files
committed
playground prompt
1 parent 5cdf77b commit 6152603

File tree

2 files changed

+51
-7
lines changed

2 files changed

+51
-7
lines changed

docs/tutorials/deploy-to-aws.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Defang allows you deploy to your own Amazon Web Services (AWS) acco
55

66
# Deploy to Amazon Web Services (AWS)
77

8-
This tutorial will show you how to deploy your services to your own AWS account using Defang with the CLI or MCP.
8+
This tutorial will show you how to deploy your services to your own AWS account using Defang.
99

1010
## Pre-requisites
1111
* [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)

docs/tutorials/deploy-to-playground.mdx

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,27 @@ description: Deploy to the free Defang Playground.
88
This tutorial will show you how to deploy your project to the free [Defang Playground](/docs/concepts/defang-playground).
99

1010
## Pre-requisites
11-
* [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
12-
* [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
13-
* [A Defang Account](/docs/concepts/authentication)
14-
* [The Defang CLI](/docs/getting-started#install-the-defang-cli)
1511

16-
## Step 1 - Navigate to your project directory
12+
- [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
13+
- [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
14+
- [A Defang Account](/docs/concepts/authentication)
15+
- [The Defang CLI](/docs/getting-started#install-the-defang-cli)
16+
17+
:::warning["MCP Pre-requisite"]
18+
If you would like to deploy using [MCP](https://modelcontextprotocol.io/), you like need to setup the [Defang MCP Server](../concepts/mcp.md) with the IDE of your choice.
19+
:::
20+
21+
## CLI
22+
23+
### Step 1 - Navigate to your project directory
24+
1725
Head to the folder where your project is located.
26+
1827
```bash
1928
$ cd path/to/your/project
2029
```
2130

22-
## Step 2 - Deploy
31+
### Step 2 - Deploy
2332

2433
```
2534
$ defang compose up
@@ -53,6 +62,41 @@ When you do this, you should see something similar to the output below:
5362
* Done.
5463
```
5564

65+
You can also check on your deployment on the on the [Defang portal](#defang-portal) as well.
66+
67+
---
68+
69+
## MCP
70+
71+
### Step 1 - Navigate to your project directory with your IDE
72+
73+
Navigate to your project directory and open it in an IDE that has the [Defang MCP Server](../concepts/mcp.md) installed.
74+
75+
:::tip
76+
If the Defang MCP server doesn’t start automatically, try starting or restarting it from your IDE settings.
77+
![VS Code](/img/prompts/start-server.png)
78+
:::
79+
80+
### Step 2 - Setting your provider
81+
82+
In your chat window, type `/mcp.defang.Playground_Setup` or select the corresponding prompt from your IDE’s options.
83+
84+
![Trigger Prompt](/img/prompts/playground-prompt.png)
85+
86+
There are no arguements to this prompt.
87+
88+
### Step 3 - Deploy
89+
90+
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the LLM to execute.
91+
92+
### Step 4 - Inspect your deployment
93+
94+
You can check the status of your depolyment by using the [Defang Services tool](../concepts/mcp#services) or you can inspect the the project on the [Defang portal](#defang-portal).
95+
96+
---
97+
98+
## Defang Portal
99+
56100
Now we can go to [https://portal.defang.dev/service/app](https://portal.defang.dev/service/app) to see our service listed in the Defang portal.
57101

58102
![screenshot of the defang portal](/img/getting-started-portal.png)

0 commit comments

Comments
 (0)