fix uploading for new server
This commit is contained in:
parent
ba3e305260
commit
3e7c728039
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -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)/%: %
|
||||||
|
|
Loading…
Add table
Reference in a new issue