Fungsi
Jellky adalah simple tetapi berkuasa static website generator. Saya sendiri menggunakan Jellky untuk melari website ini.
Environment
- Ubuntu 22.04 LTS
- Docker 20.10.12
Install docker
1
2
sudo apt install docker.io
sudo apt install docker-compose
Bina folder
1
2
mkdir jellky
cd jellky
Download Theme chirpy-starter
1
git clone https://github.com/cotes2020/chirpy-starter.git
Bina docker-compose.yaml file
1
touch docker-compose.yaml
Edit docker-compose.yaml file
1
nano docker-compose.yaml
1
2
3
4
5
6
7
8
services:
jekyll:
image: jekyll/jekyll:latest
command: jekyll serve
ports:
- 80:4000
volumes:
- .:/srv/jekyll
Run docker-compose
1
sudo docker-compose up
Layari webserver
http://localhost:80
Generate Production File
1
sudo docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" --env JEKYLL_ENV=production jekyll/jekyll:latest jekyll build
Production File boleh di dapati di dalam folder _site
Comments powered by Disqus.