<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv" -->

---
title: Deploy your Swift on the Server apps with Kamal 2
description: 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...
canonical: https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Deploy your Swift on the Server apps with Kamal 2 | daily.dev
og:description: 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...
og:url: https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv
og:image: https://api.daily.dev/og/posts/bJ3H725lv.png
og:image:alt: Deploy your Swift on the Server apps with Kamal 2
og:image:width: 1200
og:image:height: 630
og:locale: 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
- [Self Hosted App](https://daily.dev/posts/self-hosted-app-zedk4epay) · RUBYLAND · 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
- [Rails 8 Introduces Kamal 2 For Zero Downtime Deployments](https://daily.dev/posts/rails-8-introduces-kamal-2-for-zero-downtime-deployments-foozizcgv) · Saeloun · 0 upvotes · 0 comments
- [Deploy Rails 8 to a VPS with Kamal 2 \(Vite, Solid Queue, Postgres\)](https://daily.dev/posts/deploy-rails-8-to-a-vps-with-kamal-2-vite-solid-queue-postgres--itsuuunwr) · Ruby Flow · 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)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"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","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv"},"datePublished":"2026-08-23T12:23:49.645Z","dateModified":"2026-08-23T12:59:58.515Z","description":"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...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/94a45d4cd5e8f11ae430bbefa9499277?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/94a45d4cd5e8f11ae430bbefa9499277?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"\n      Tuist\n    ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"\n      Tuist\n    ","logo":"https://media.daily.dev/image/upload/s--3AYDH23h--/f_auto,q_auto/v1787487506/logos/tuist-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/tuist-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"docker,cicd,swift,kamal","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"\n      Tuist\n    ","item":"https://daily.dev/sources/tuist-blog"},{"@type":"ListItem","position":3,"name":"Deploy your Swift on the Server apps with Kamal 2"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/deploy-your-swift-on-the-server-apps-with-kamal-2-bj3h725lv#faq","mainEntity":[{"@type":"Question","name":"How do I deploy a Vapor or Hummingbird Swift server app without using a PaaS like Heroku or Fly.io?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I enable automatic HTTPS for an app deployed with Kamal?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"What do I need before I can deploy an app with Kamal?","acceptedAnswer":{"@type":"Answer","text":"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."}}]}
```

