blob: e922a887564b115225ebab43c68f610c477a22aa (
plain) (
tree)
|
|
.POSIX:
REMOTE_HOST := root@rgoncalves.se
REMOTE_DIR := /var/www/htdocs/rgoncalves.se
OUTPUT_DIR := ./out
TEMPORARY_DIR := ./tmp
PATH := $(PATH):../ssg
SSG_WEBSITE_DOMAIN := rgoncalves.se
SSG_WEBSITE_TITLE := $(SSG_WEBSITE_DOMAIN)
SSG_WEBSITE_DESCRIPTION="devops and hacker D:"
.PHONY: all \
site \
clean
site: clean
ssg
rssg
preview: site
python3 -m http.server --directory $(OUTPUT_DIR) --bind 127.0.0.1
clean:
- rm -r $(OUTPUT_DIR) $(TEMPORARY_DIR)
deploy: site
rsync -e ssh -avz --delete $(OUTPUT_DIR)/ $(REMOTE_HOST):$(REMOTE_DIR)
ssh $(REMOTE_HOST) chown -R www:www $(REMOTE_DIR)
|