From 814aaa4e4a8b6dab09cac3928c68c9adf2d4d2b9 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 16 Nov 2019 17:48:01 -0500 Subject: Makefile: Add prd-config. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4e568e8..bfbe420 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,11 @@ prd-initdb: .PHONY: prd-initdb +prd-config: + ssh root@${PRD_HOST} \\"echo \"SECRET_KEY=b'`openssl rand -hex 16`'\" \ + > ${VENV_DIR}-prd/var/nfsw-instance/config.py\\" +.PHONY: prd-config + prd-rcd: ssh root@${PRD_HOST} mkdir -p -m 755 /etc/uwsgi rsync ${UWSGI_INI} root@${PRD_HOST}:/${UWSGI_INI} -- cgit v1.2.3