fix uploading for new server
This commit is contained in:
parent
ba3e305260
commit
3e7c728039
1 changed files with 5 additions and 4 deletions
5
Makefile
5
Makefile
|
@ -22,7 +22,8 @@ BUILDDIR ?= /srv/www/yummy
|
|||
TMPDIR ?= _tmp
|
||||
|
||||
HOST ?= yummy.cricket
|
||||
REMOTE_USER ?= www-data
|
||||
SSH_PORT ?= 35353
|
||||
REMOTE_USER ?= nginx
|
||||
REMOTE_DIR ?= yummy
|
||||
|
||||
all: build
|
||||
|
@ -33,7 +34,7 @@ upload: build
|
|||
@rsync --recursive --partial --progress --copy-links \
|
||||
--compress --human-readable --hard-links \
|
||||
--delete --delete-after \
|
||||
--rsh='ssh -l $(REMOTE_USER)' \
|
||||
--rsh='ssh -l $(REMOTE_USER) -p $(SSH_PORT)' \
|
||||
$(BUILDDIR)/ $(HOST):$(REMOTE_DIR)/
|
||||
|
||||
$(BUILDDIR)/%: %
|
||||
|
|
Loading…
Add table
Reference in a new issue