Skip to content

Commit f367641

Browse files
committed
change kamal docs to match template
1 parent 2f4237d commit f367641

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

MyApp/_posts/2024-11-26_kamal-deployments.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,47 @@ One of the big benefits of Kamal is the focus on ergonomics and the really well
3939

4040
- Get a Linux host running with SSH access
4141
- Update your DNS configuration with an A record pointing to that hosts IP address
42-
- Create a new project using one of our updated templates using a command like `x new blazor-vue MyApp`
43-
- Update the `config/deploy.yml` with the following details
42+
- Create a new project using one of our updated templates using a command like:
43+
44+
:::sh
45+
x new blazor-vue MyApp
46+
:::
47+
48+
Update the `config/deploy.yml` with the following details:
4449

4550
### GitHub Container Registry Image
4651

4752
```yml
48-
# Name of the container image.
49-
image: github-org/repository-name # Or, your-user/repository-name
53+
# Name of the container image
54+
image: my-user/myapp
5055
```
5156
5257
### Server Web
5358
59+
Configure with your Linux Host IP Address:
60+
5461
```yml
5562
servers:
63+
# IP address of server, optionally use env variable
64+
web:
65+
- 123.123.123.123
66+
```
67+
68+
Alternatively, you can use an environment variable for the server IP address, e.g:
69+
70+
```yml
5671
web:
57-
- 123.123.123.123 # Your Linux Host IP Address
72+
- <%= ENV['KAMAL_DEPLOY_IP'] %>
5873
```
5974
6075
### Proxy Host
6176
77+
Configure with your domain pointing to the same IP as your host:
78+
6279
```yml
6380
proxy:
6481
ssl: true
65-
host: myapp.example.com # Your domain pointing to the same IP as your host
82+
host: myapp.example.com
6683
```
6784
6885
### Health Checks

0 commit comments

Comments
 (0)