Deploying a Jekyll site with Kamal | Greg Molnar

08-Nov-2024 196
Since Kamal 2 can host multiple sites on the same server, I am consolidating my apps into larger hosts so I have less servers to worry about. Most of my apps are Rails apps, but I have a few static jekyll sites like this blog and I decided to look into how could I move this site to a server I host other Rails apps on. The first step of the process is to “dockerize” the jekyll site. Kamal Proxy will handle SSL and only requires something to process HTTP requests, so we will create a container with nginx, serving the static HTML files over port 80. To achieve this, we need to create the following Dockerfile in the root of the jekyll project:.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle