Add deploy command to Makefile
This commit is contained in:
parent
2ecd7d2d9f
commit
aa33976fc8
14
Makefile
14
Makefile
@ -22,3 +22,17 @@ lint:
|
|||||||
|
|
||||||
test: build-pygments
|
test: build-pygments
|
||||||
./test.sh
|
./test.sh
|
||||||
|
|
||||||
|
host = 'gundi@miti.sh'
|
||||||
|
path = 'www/sites/miti.sh/html/'
|
||||||
|
|
||||||
|
deploy: confirm_deploy
|
||||||
|
rsync -rvuzL html/ $(host):$(path)
|
||||||
|
|
||||||
|
confirm_deploy:
|
||||||
|
@echo -n "Deploy previously generated site over ssh using rsync\n\n\
|
||||||
|
Server hostname $(host)?\n\
|
||||||
|
Path on server to deploy to $(path)?\n\n\
|
||||||
|
Are you sure? [y/N] " && read ans && [ $${ans:-N} = y ]
|
||||||
|
|
||||||
|
.PHONY: confirm_deploy
|
||||||
|
@ -82,6 +82,10 @@ example:
|
|||||||
|
|
||||||
$ pygmentize -S default -f html
|
$ pygmentize -S default -f html
|
||||||
|
|
||||||
|
### deploy
|
||||||
|
|
||||||
|
$ make deploy
|
||||||
|
|
||||||
## gotchas
|
## gotchas
|
||||||
|
|
||||||
### What is error `cosmo failed: [string "..."]:62: cannot resume dead coroutine`?
|
### What is error `cosmo failed: [string "..."]:62: cannot resume dead coroutine`?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user