forked from varia/varia.website
Add some magic
This commit is contained in:
parent
6f966158c3
commit
5b20f1b549
@ -96,8 +96,10 @@ stopserver:
|
|||||||
$(BASEDIR)/develop_server.sh stop
|
$(BASEDIR)/develop_server.sh stop
|
||||||
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
|
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
|
||||||
|
|
||||||
|
# Note: sorry ...
|
||||||
|
MAGIC = $$(basename $$PWD)
|
||||||
publish:
|
publish:
|
||||||
$(PELICAN) $(INPUTDIR) -o /var/www/html/ -s $(PUBLISHCONF) $(PELICANOPTS)
|
$(PELICAN) $(INPUTDIR) -o "/var/www/manymanymany-varia-websites/$(MAGIC)" -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)
|
||||||
|
@ -96,8 +96,10 @@ stopserver:
|
|||||||
$(BASEDIR)/develop_server.sh stop
|
$(BASEDIR)/develop_server.sh stop
|
||||||
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
|
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
|
||||||
|
|
||||||
|
# Note: sorry ...
|
||||||
|
MAGIC = $$(basename $$PWD)
|
||||||
publish:
|
publish:
|
||||||
$(PELICAN) $(INPUTDIR) -o /var/www/html/ -s $(PUBLISHCONF) $(PELICANOPTS)
|
$(PELICAN) $(INPUTDIR) -o "/var/www/manymanymany-varia-websites/$(MAGIC)" -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user