4 ms·
If your content is static anyway, you can just rsync to deploy instead of push to deploy: rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(L
by atwrk 2y ago
If your content is static anyway, you can just rsync to deploy instead of push to deploy:
rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(LOCAL_CONTENT) $(SSH_USER)@$(SSH_HOST):$(REMOTE_DIR)
Self-hosting then essentially just means doing apt install nginx once.
- _joel 2y agoThat would expose .git, unless other nginx config masked it. cvs-exclude is for cvs, right?
- atwrk 2y agoIt was for cvs, because rsync is old, but nowadays also filters out .git, .svn, .hg etc. In any case this is supposed to only sync the rendered content from $(LOCAL_CONTENT), not the templates used for rendering.