|
@ -4,7 +4,7 @@ PELICANOPTS= |
|
|
|
|
|
|
|
|
BASEDIR=$(CURDIR) |
|
|
BASEDIR=$(CURDIR) |
|
|
INPUTDIR=$(BASEDIR)/content |
|
|
INPUTDIR=$(BASEDIR)/content |
|
|
OUTPUTDIR=/var/www/html/ |
|
|
OUTPUTDIR=$(BASEDIR)/output |
|
|
CONFFILE=$(BASEDIR)/pelicanconf.py |
|
|
CONFFILE=$(BASEDIR)/pelicanconf.py |
|
|
PUBLISHCONF=$(BASEDIR)/publishconf.py |
|
|
PUBLISHCONF=$(BASEDIR)/publishconf.py |
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ stopserver: |
|
|
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.' |
|
|
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.' |
|
|
|
|
|
|
|
|
publish: |
|
|
publish: |
|
|
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) |
|
|
$(PELICAN) $(INPUTDIR) -o /var/www/html/ -s $(PUBLISHCONF) $(PELICANOPTS) |
|
|
|
|
|
|
|
|
ssh_upload: publish |
|
|
ssh_upload: publish |
|
|
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) |
|
|
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) |
|
|