check.jcarr.wit.com/Makefile

43 lines
1011 B
Makefile

# Clone from IPv6: git clone git://ping.wit.com/git/website/jcarr/check.jcarr.wit.com
# Clone with ssh keys: git clone ssh://root@ping.wit.com/var/lib/git/website/jcarr/check.jcarr.wit.com
all:
@echo
@echo 'make update # pulls down the submodule directories'
@echo 'make status # shows your letsencrypt cert'
@echo
setup:
make status
ls -l /var/www/html
push:
git add --all
-git commit -a
git push
# git submodule add git://ping.wit.com/git/witcoredns witcoredns
update:
git pull
git submodule update --init --recursive
# do this to allow a new tree on the git server
resetgit:
mkdir myrepo
cd myrepo && touch .git/git-daemon-export-ok
cd myrepo && git config --bool core.bare true
status:
@echo
acmetool status
@echo
# this will update the cert when 'acmetool status' says 'needs-renewing'
renew-cert:
service nginx stop
acmetool --xlog.severity=debug reconcile
log:
tail -f /var/log/nginx/access.log /var/log/nginx/error.log
journalctl -n 100 -f _SYSTEMD_UNIT=nginx.service