Skip to content

Commit

Permalink
change kamal docs to match template
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 27, 2024
1 parent 2f4237d commit f367641
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions MyApp/_posts/2024-11-26_kamal-deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,47 @@ One of the big benefits of Kamal is the focus on ergonomics and the really well

- Get a Linux host running with SSH access
- Update your DNS configuration with an A record pointing to that hosts IP address
- Create a new project using one of our updated templates using a command like `x new blazor-vue MyApp`
- Update the `config/deploy.yml` with the following details
- Create a new project using one of our updated templates using a command like:

:::sh
x new blazor-vue MyApp
:::

Update the `config/deploy.yml` with the following details:

### GitHub Container Registry Image

```yml
# Name of the container image.
image: github-org/repository-name # Or, your-user/repository-name
# Name of the container image
image: my-user/myapp
```
### Server Web
Configure with your Linux Host IP Address:
```yml
servers:
# IP address of server, optionally use env variable
web:
- 123.123.123.123
```
Alternatively, you can use an environment variable for the server IP address, e.g:
```yml
web:
- 123.123.123.123 # Your Linux Host IP Address
- <%= ENV['KAMAL_DEPLOY_IP'] %>
```
### Proxy Host
Configure with your domain pointing to the same IP as your host:
```yml
proxy:
ssl: true
host: myapp.example.com # Your domain pointing to the same IP as your host
host: myapp.example.com
```
### Health Checks
Expand Down

0 comments on commit f367641

Please sign in to comment.