From a4298c1abf0b2f0860366a870f708f3d3a6045ba Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 9 Nov 2019 13:57:18 -0500 Subject: Makefile: Add prd-initdb. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ef5a1d5..cfd47cb 100644 --- a/Makefile +++ b/Makefile @@ -71,6 +71,14 @@ prd-install: && chown -R _nfsw:wheel /var/www/nfsw/ \\" .PHONY: prd-install + +prd-initdb: + ssh root@${PRD_HOST} \\". ${VENV_DIR}-prd/bin/activate \ + && FLASK_APP=nfsw flask init-db \ + && chown -R _nfsw:wheel ${VENV_DIR}-prd \\" +.PHONY: prd-initdb + + rcd: scp ${RC_D} root@${PRD_HOST}:/${RC_D} ssh root@${PRD_HOST} chmod 555 /${RC_D} -- cgit v1.2.3