From d6743e75459b29b968fd00ae95fe95ff19f452d6 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 16 Nov 2019 23:41:59 -0500 Subject: Makefile: Add prd-nginx. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index a9b5650..bbbfb4f 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,9 @@ ACME_CONF=etc/acme-client.conf UWSGI_INI=etc/uwsgi/nfsw.ini RC_D=etc/rc.d/nfsw +NGINX_DIR=etc/nginx +NEWSYSLOG=etc/newsyslog.conf + SSH_PUB=ssh/lyra.pub TB=bin/tball @@ -83,6 +86,17 @@ prd-httpd: .PHONY: prd-httpd +prd-nginx: + rsync -a ${NGINX_DIR}/ \ + root@${PRD_HOST}:/${NGINX_DIR} + rsync -a ${NEWSYSLOG} \ + root@${PRD_HOST}:/${NEWSYSLOG} + ssh root@${PRD_HOST} \\"rcctl enable nginx \ + && rcctl restart nginx \ + && git -C /etc add nginx rc.conf.local\\" +.PHONY: prd-nginx + + prd-acme: rsync ${ACME_CONF} root@${PRD_HOST}:/${ACME_CONF} .PHONY: prd-acme -- cgit v1.2.3