---
title: "Deploy your Swift on the Server apps with Kamal 2"
url: https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv
source_url: https://tuist.dev/blog/2024/09/28/kamal-two-swift-server
type: article
source: "\n      Tuist\n    "
published: 2026-08-23T12:23:49.645Z
updated: 2026-08-23T12:59:58.515Z
tags: ["docker", "cicd", "swift", "kamal"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy your Swift on the Server apps with Kamal 2

**[
      Tuist
    ](https://daily.dev/sources/tuist-blog)** · 8 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide walks through deploying a Swift on the Server app (Vapor or Hummingbird) using Kamal 2, a Ruby-based CLI for deploying containerized apps to any SSH-accessible server without relying on a PaaS. It covers installing Kamal, provisioning a Hetzner server, creating a Dockerfile-based Swift app, writing the Kamal YAML configuration, running kamal setup and kamal deploy, and enabling automatic HTTPS via Let's Encrypt.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tuist.dev/blog/2024/09/28/kamal-two-swift-server>

## Questions this post answers

### How do I deploy a Vapor or Hummingbird Swift server app without using a PaaS like Heroku or Fly.io?

Use Kamal, a Ruby-based CLI that deploys containerized apps to any SSH-accessible server. It requires an OCI-compliant Dockerfile, an image registry, and an SSH-accessible server such as one from Hetzner. Configuration lives in a YAML file at config/deploy.yml, and deployment happens by running kamal setup followed by kamal deploy, giving zero-downtime rollouts without PaaS costs.

_daily.dev surfaces practical deployment guides for developers weighing PaaS versus self-hosted setups like Kamal._

### How do I enable automatic HTTPS for an app deployed with Kamal?

Add ssl: true and a host field under the proxy section in config/deploy.yml, specifying your domain name. Kamal then automatically requests a certificate from Let's Encrypt and configures its built-in proxy to serve the app over HTTPS, removing the need to manually manage certificates or a separate reverse proxy.

_Developers configuring TLS for self-hosted deployments can find setup walkthroughs like this on daily.dev._

### What do I need before I can deploy an app with Kamal?

You need three things: an OCI-compliant container image built from a Dockerfile, a registry to push and pull that image from (Docker Hub is used by default, though GitHub Packages and DigitalOcean also work), and a server reachable over SSH. Kamal handles installing dependencies and orchestrating zero-downtime deploys once these are in place.

_daily.dev helps developers comparing self-hosted deployment tooling like Kamal against managed platforms._

## Similar posts on daily.dev

- [Deploying multiple apps with what's new in Kamal 2](https://daily.dev/posts/deploying-multiple-apps-with-what-s-new-in-kamal-2-xklogizyo) · Honeybadger · 0 upvotes · 0 comments
- [Deploying Rails 8 with Kamal on a Single Server](https://daily.dev/posts/deploying-rails-8-with-kamal-on-a-single-server-a3gwyzjhn) · Ruby Flow · 1 upvotes · 0 comments
- [Self Hosted App](https://daily.dev/posts/self-hosted-app-zedk4epay) · RUBYLAND · 0 upvotes · 0 comments

---

Tags: [#docker](https://daily.dev/tags/docker), [#cicd](https://daily.dev/tags/cicd), [#swift](https://daily.dev/tags/swift), [#kamal](https://daily.dev/tags/kamal)

[View this post on daily.dev](https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv)
