Skip to content

Commit

Permalink
Upload _site instead of stuff in upload_files.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheiss committed Aug 1, 2018
1 parent 9e31cf3 commit 31725b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Expand Up @@ -2,7 +2,13 @@ remote_host = cloud
remote_dir = ~/sites/stats/public_html/donors-ngo-restrictions
remote_dest = $(remote_host):$(remote_dir)

.PHONY: upload
.PHONY: clean html upload

html:
Rscript -e "rmarkdown::render_site(encoding = 'UTF-8')"

clean:
Rscript -e "rmarkdown::clean_site()"

upload:
rsync -P -rvzcv --delete --files-from=upload_files.txt . $(remote_dest)
rsync -crvP --delete _site/ $(remote_dest)

0 comments on commit 31725b5

Please sign in to comment.