2018-02-02 04:56:45 -06:00
|
|
|
# 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:
|
2023-03-22 17:14:01 -05:00
|
|
|
@echo
|
|
|
|
@echo 'make update # pulls down the submodule directories'
|
|
|
|
@echo 'make status # shows your letsencrypt cert'
|
|
|
|
@echo
|
2018-02-02 04:56:45 -06:00
|
|
|
|
|
|
|
setup:
|
2023-03-22 17:14:01 -05:00
|
|
|
make status
|
|
|
|
ls -l /var/www/html
|
2018-02-02 04:56:45 -06:00
|
|
|
|
|
|
|
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
|
2023-03-22 17:14:01 -05:00
|
|
|
|
|
|
|
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
|
2023-03-22 17:55:45 -05:00
|
|
|
|
|
|
|
log:
|
|
|
|
tail -f /var/log/nginx/access.log /var/log/nginx/error.log
|
|
|
|
journalctl -n 100 -f _SYSTEMD_UNIT=nginx.service
|