brew cask install docker
- Start Docker.app (ensure it's running if you get daemon connection errors)
git clone git@github.com:phrz/paulherz.com
cd paulherz.com
make serve
open http://localhost:4000/
- Spin up a Ubuntu VM and attach to IP for paulherz.com. Setup ssh certs. Setup
ph
alias on local dev machine. curl https://getcaddy.com | bash -s personal
apt install git
git clone https://github.com/phrz/paulherz.com.git
cd paulherz.com
cp Caddyfile ..
cp keepup.sh ..
cd ..
chmod +x keepup.sh
mkdir -p /var/www/paulherz
- Edit
Caddyfile
to contain email address. - Run
crontab -e
and add*/10 * * * * /root/keepup.sh
(every 10 min)
make
(builds from scratch and deploys to/var/www/paulherz
folder)
Note: you may occassionally need to update the jekyll Docker image, do so with docker pull jekyll/jekyll
on your development machine.