© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LilleaasPro Kotlin Web Apps from Scratchhttps://doi.org/10.1007/978-1-4842-9057-6_11

11. Deploying to Traditional Server Based Environments

August Lilleaas1  
(1)
Oslo, Norway
 

The most common way to deploy production-grade web apps today is in a traditional server-based environment. This chapter covers how to package your web app so you can deploy it in several types of environments, be it a single-node dedicated server or a distributed multi-server Kubernetes cluster.

Packaging as Self-Contained JAR Files

For any type of deployment setup, you’ll need to package your web app as a self-contained Java archive (JAR) file.

What’s a JAR File

A JAR file is a file ...

Get Pro Kotlin Web Apps from Scratch: Building Production-Ready Web Apps Without a Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.