Fill in the details to make this site deployable to nutmeg.erynwells.me/sandbox

This commit is contained in:
Eryn Wells 2024-06-29 10:25:17 -07:00
parent 03f5c1ada4
commit 2466dd8f38
2 changed files with 24 additions and 2 deletions

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
# Eryn Wells <eryn@erynwells.me>
DEPLOY_USER=eryn
DEPLOY_HOSTNAME=nutmeg.erynwells.me
DEPLOY_PATH=/srv/www/nutmeg.erynwells.me/html/sandbox
DEPLOY_LOCATION=$(DEPLOY_USER)@$(DEPLOY_HOSTNAME):$(DEPLOY_PATH)
HOSTNAME=$(shell hostname -s)
.PHONY: site deploy clean
site:
@echo "Building site"
hugo -D
deploy: site
@echo "Deploying to $(DEPLOY_LOCATION)"
rsync -avz --no-times --no-perms --delete public/ $(DEPLOY_LOCATION)
git tag -f deploy-$(shell date +%Y-%m-%d)
clean:
rm -rf public/

View file

@ -1,6 +1,6 @@
baseURL: https://example.org/ baseURL: "https://nutmeg.erynwells.me/sandbox"
languageCode: en-us languageCode: en-us
title: Test Site title: Eryn Wells
theme: theme:
- blog - blog