update deploy strat

This commit is contained in:
ktyl 2022-03-29 22:52:38 +01:00
parent 7471087c09
commit 9d8217ffb8
1 changed files with 8 additions and 1 deletions

View File

@ -31,6 +31,14 @@ HTML_TARGETS = $(PAGES:$(ROOT_DIR)/%.html=$(OUT_DIR)/%.html)
CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css) CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css)
PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png
deploy: site
cp -r $(OUT_DIR) $(SITE_NAME)
rsync -rP $(SITE_NAME) $(HOST):~
rm -r $(SITE_NAME)
ssh $(HOST) "sudo $(REMOTE_SCRIPT)"
run: site
site: $(HTML_TARGETS) $(CSS_TARGETS) site: $(HTML_TARGETS) $(CSS_TARGETS)
cp $(IMG_DIR)/*.png $(OUT_DIR)/ cp $(IMG_DIR)/*.png $(OUT_DIR)/
@ -80,4 +88,3 @@ clean:
rm -rf $(OUT_DIR) $(BLOG_TMP_DIR) rm -rf $(OUT_DIR) $(BLOG_TMP_DIR)
.PHONY: site .PHONY: site