fix uploading for new server

This commit is contained in:
Rhiannon Morris 2025-03-07 20:16:49 +01:00
parent ba3e305260
commit 3e7c728039

View file

@ -21,9 +21,10 @@ ALL = $(CSS) $(PAGES) $(MEDIA) $(SCRIPTS) $(MISC)
BUILDDIR ?= /srv/www/yummy BUILDDIR ?= /srv/www/yummy
TMPDIR ?= _tmp TMPDIR ?= _tmp
HOST ?= yummy.cricket HOST ?= yummy.cricket
REMOTE_USER ?= www-data SSH_PORT ?= 35353
REMOTE_DIR ?= yummy REMOTE_USER ?= nginx
REMOTE_DIR ?= yummy
all: build all: build
@ -33,7 +34,7 @@ upload: build
@rsync --recursive --partial --progress --copy-links \ @rsync --recursive --partial --progress --copy-links \
--compress --human-readable --hard-links \ --compress --human-readable --hard-links \
--delete --delete-after \ --delete --delete-after \
--rsh='ssh -l $(REMOTE_USER)' \ --rsh='ssh -l $(REMOTE_USER) -p $(SSH_PORT)' \
$(BUILDDIR)/ $(HOST):$(REMOTE_DIR)/ $(BUILDDIR)/ $(HOST):$(REMOTE_DIR)/
$(BUILDDIR)/%: % $(BUILDDIR)/%: %