pyratenet

  • web
  • git
  • ftp
  • wiki

choices

  • one vps with docker
  • multi vps

one vps with docker

look at using jenkins ci/cd for auto deployment

multi vps

use git hooks for deployment - see refs

wiki

  • using markdown files in git repo
  • following 'makefile' to build html files

    MD_FILES=$(shell find . -name \*.md)
    HTML_FILES=$(MD_FILES:.md=.html)
    BUILD_HTML_FILES=$(HTML_FILES:%=build/%)
    
    all: $(BUILD_HTML_FILES)
    
    build/assets/%: assets/%
        @mkdir -p $$(dirname $@)
        cp $? $@
    
    build/%.html: %.md
        @mkdir -p $$(dirname $@)
        pandoc -o $@ $<
    
    # run with `make deploy`
    deploy: 
        rsync --recursive --human-readable --delete --info=progress2 \
            build/* user@host:dir
    
    • run with make deploy

ref

http://joemaller.com/990/a-web-focused-git-workflow/ http://codesamplez.com/source-control/deployment-with-git-hook https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks

https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps http://toroid.org/git-website-howto