summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-11-16 17:48:01 -0500
committerrsiddharth <s@ricketyspace.net>2019-11-16 17:48:01 -0500
commit814aaa4e4a8b6dab09cac3928c68c9adf2d4d2b9 (patch)
treec7474c6418015f54e8a9c95f9b226ba5ca667f51
parentbea87b705d6089d805b068113ef8b8c7a097be17 (diff)
Makefile: Add prd-config.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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}